Fixes possible crash when collecting IPV4_NEXT_HOP

This commit is contained in:
Simone Mainardi 2020-07-31 17:06:18 +02:00
parent 32f33d4415
commit 3cafee5728

View file

@ -504,7 +504,7 @@ bool ZMQParserInterface::parsePENZeroField(ParsedFlow * const flow, u_int32_t fi
return false;
break;
case IPV4_NEXT_HOP:
if(strcmp(value->string, "0.0.0.0"))
if(value->string && strcmp(value->string, "0.0.0.0"))
return false;
break;
case SRC_AS: