From 3cafee572808cb32b14086d920e8a37fc7bb5b23 Mon Sep 17 00:00:00 2001 From: Simone Mainardi Date: Fri, 31 Jul 2020 17:06:18 +0200 Subject: [PATCH] Fixes possible crash when collecting IPV4_NEXT_HOP --- src/ZMQParserInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZMQParserInterface.cpp b/src/ZMQParserInterface.cpp index 8eaa37e4e9..c54b383e4d 100755 --- a/src/ZMQParserInterface.cpp +++ b/src/ZMQParserInterface.cpp @@ -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: