fix for potential NULL deref on error in detect-http-method.c

remotes/origin/master-1.0.x
William Metcalf 15 years ago committed by Victor Julien
parent fe0c98153e
commit a42fff541f

@ -232,8 +232,10 @@ static int DetectHttpMethodSetup(DetectEngineCtx *de_ctx, Signature *s, char *st
error:
if (data != NULL) DetectHttpMethodFree(data);
if (nm != NULL) {
if (nm->ctx != NULL) DetectHttpMethodFree(nm);
if (nm != NULL) SCFree(nm);
SCFree(nm);
}
SCReturnInt(-1);
}

Loading…
Cancel
Save