diff --git a/src/detect-id.c b/src/detect-id.c index 475d0d944e..ad8513e151 100644 --- a/src/detect-id.c +++ b/src/detect-id.c @@ -166,6 +166,10 @@ DetectIdData *DetectIdParse (char *idstr) orig = SCStrdup((char*)str_ptr); tmp_str=orig; + if (tmp_str == NULL) { + goto error; + } + /* Let's see if we need to scape "'s */ if (tmp_str[0] == '"') {