From: Alessandro Guido Date: Wed, 16 Sep 2015 13:14:11 +0000 (+0200) Subject: Segfault fix X-Git-Tag: suricata-3.0.1RC1~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05fdfcb71ee255ffcd6c3761ee564bd93e504b5e;p=thirdparty%2Fsuricata.git Segfault fix --- diff --git a/src/detect-engine-content-inspection.c b/src/detect-engine-content-inspection.c index 17df02ce9a..ae86a3574e 100644 --- a/src/detect-engine-content-inspection.c +++ b/src/detect-engine-content-inspection.c @@ -433,7 +433,7 @@ int DetectEngineContentInspection(DetectEngineCtx *de_ctx, DetectEngineThreadCtx /* if we have dce enabled we will have to use the endianness * specified by the dce header */ - if (flags & DETECT_BYTETEST_DCE) { + if (data && flags & DETECT_BYTETEST_DCE) { DCERPCState *dcerpc_state = (DCERPCState *)data; /* enable the endianness flag temporarily. once we are done * processing we reset the flags to the original value*/