Make sure we do all after the null check in HTPStateFree

remotes/origin/master-1.1.x
Gerardo Iglesias Galvan 15 years ago committed by Victor Julien
parent c4832814b4
commit a56592e556

@ -181,12 +181,15 @@ void HTPStateFree(void *state)
SCEnter();
HtpState *s = (HtpState *)state;
if (s == NULL) {
SCReturn;
}
/* Unset the body inspection */
s->flags &=~ HTP_FLAG_NEW_BODY_SET;
/* free the connection parser memory used by HTP library */
if (s != NULL && s->connp != NULL) {
if (s->connp != NULL) {
SCLogDebug("freeing HTP state");
size_t i;

Loading…
Cancel
Save