|
|
|
@ -398,9 +398,6 @@ int DetectEngineInspectHttpHeader(DetectEngineCtx *de_ctx,
|
|
|
|
|
SCReturnInt(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* locking the flow, we will inspect the htp state */
|
|
|
|
|
SCMutexLock(&f->m);
|
|
|
|
|
|
|
|
|
|
if (htp_state->connp == NULL || htp_state->connp->conn == NULL) {
|
|
|
|
|
SCLogDebug("HTP state has no conn(p)");
|
|
|
|
|
goto end;
|
|
|
|
@ -436,6 +433,7 @@ int DetectEngineInspectHttpHeader(DetectEngineCtx *de_ctx,
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < det_ctx->hhd_buffers_list_len; i++) {
|
|
|
|
|
uint8_t *hhd_buffer = det_ctx->hhd_buffers[i];
|
|
|
|
|
uint32_t hhd_buffer_len = det_ctx->hhd_buffers_len[i];
|
|
|
|
@ -451,7 +449,6 @@ int DetectEngineInspectHttpHeader(DetectEngineCtx *de_ctx,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
end:
|
|
|
|
|
SCMutexUnlock(&f->m);
|
|
|
|
|
SCReturnInt(r);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|