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);