From 2a4f821284a033735d921bf483ba3189f2f5381c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 17 Oct 2013 19:07:46 +0200 Subject: [PATCH] Fix 2 unittests --- src/detect-http-cookie.c | 2 +- src/detect-http-method.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);