From: Jeff Lucovsky Date: Thu, 20 Aug 2020 15:28:28 +0000 (-0400) Subject: napatech: Use proper parser for type X-Git-Tag: suricata-6.0.0-rc1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67529bd25a4381e03f9d31541a4a20376a31258d;p=thirdparty%2Fsuricata.git napatech: Use proper parser for type This commit uses the proper parser call for the value being parsed. --- diff --git a/src/util-napatech.c b/src/util-napatech.c index e6de05bde8..aa9d0e71ae 100644 --- a/src/util-napatech.c +++ b/src/util-napatech.c @@ -931,7 +931,7 @@ int NapatechGetStreamConfig(NapatechStreamConfig stream_config[]) "Napatech range and individual specifiers cannot be combined."); } stream_spec = CONFIG_SPECIFIER_INDIVIDUAL; - if (StringParseUint16(&stream_config[instance_cnt].stream_id, + if (StringParseUint8(&stream_config[instance_cnt].stream_id, 10, 0, (const char *)stream->val) < 0) { FatalError(SC_ERR_INVALID_VALUE, "Napatech invalid " "stream id: '%s'", stream->val);