inliniac/suricata — pull request #500 by regit (2013-08-28 08:35:28+00:00)
Title: Tests validation

When compiling suricata with unittests and debug validation:
./configure --enable-unittests --enable-debug --enable-debug-validation
the unittests were failing.

This patchset updates the code to have unittests working with debug validation. Two type of fixes have been needed. One is to lock the flow before calling some functions. Other is to recycle packet before flow shutdown.