Project

General

Profile

Bug #1550 » 0001-Segfault-fix.patch

check data != NULL - Alessandro Guido, 09/16/2015 10:54 AM

View differences:

src/detect-engine-content-inspection.c
/* 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*/
(1-1/4)