]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Segfault fix
authorAlessandro Guido <alessandro.guido@unimore.it>
Wed, 16 Sep 2015 13:14:11 +0000 (15:14 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Feb 2016 08:19:13 +0000 (09:19 +0100)
src/detect-engine-content-inspection.c

index 17df02ce9a1a80cc02857e9c912b713134205cbc..ae86a3574e1e6425abda7373ce7b307dffa06c10 100644 (file)
@@ -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*/