Fix segv in http log module.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent 60685f8b3c
commit 45b85c063a

@ -99,7 +99,10 @@ TmEcode LogHttpLogIPv4(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq)
goto end;
}
if ( !(htp_state->flags & HTP_FLAG_NEW_REQUEST)) {
if (htp_state->connp == NULL)
goto end;
if (!(htp_state->flags & HTP_FLAG_NEW_REQUEST)) {
SCLogDebug("no new http request , so no request logging");
goto end;
}
@ -196,7 +199,10 @@ TmEcode LogHttpLogIPv6(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq)
goto end;
}
if ( !(htp_state->flags & HTP_FLAG_NEW_REQUEST)) {
if (htp_state->connp == NULL)
goto end;
if (!(htp_state->flags & HTP_FLAG_NEW_REQUEST)) {
SCLogDebug("no new http request , so no request logging");
goto end;
}

Loading…
Cancel
Save