From: Victor Julien Date: Thu, 17 Oct 2013 17:07:46 +0000 (+0200) Subject: Fix 2 unittests X-Git-Tag: suricata-2.0beta2~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a4f821284a033735d921bf483ba3189f2f5381c;p=thirdparty%2Fsuricata.git Fix 2 unittests --- diff --git a/src/detect-http-cookie.c b/src/detect-http-cookie.c index 4d1a7b545a..3563fbf692 100644 --- a/src/detect-http-cookie.c +++ b/src/detect-http-cookie.c @@ -820,8 +820,8 @@ static int DetectHttpCookieSigTest06(void) { int r = AppLayerParse(NULL, &f, ALPROTO_HTTP, STREAM_TOSERVER, httpbuf1, httplen1); if (r != 0) { printf("toserver chunk 1 returned %" PRId32 ", expected 0: ", r); - goto end; SCMutexUnlock(&f.m); + goto end; } SCMutexUnlock(&f.m); diff --git a/src/detect-http-method.c b/src/detect-http-method.c index 4252ea9a72..42844618d8 100644 --- a/src/detect-http-method.c +++ b/src/detect-http-method.c @@ -651,8 +651,8 @@ static int DetectHttpMethodSigTest03(void) int r = AppLayerParse(NULL, &f, ALPROTO_HTTP, STREAM_TOSERVER, httpbuf1, httplen1); if (r != 0) { SCLogDebug("toserver chunk 1 returned %" PRId32 ", expected 0: ", r); - goto end; SCMutexUnlock(&f.m); + goto end; } SCMutexUnlock(&f.m);