From: Shivani Bhardwaj Date: Tue, 21 Jul 2020 08:16:18 +0000 (+0530) Subject: bytetest: use ByteExtractString instead of StringParse X-Git-Tag: suricata-6.0.0-beta1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c169cfe0a38044631bb10b725c4d0165ebd3e604;p=thirdparty%2Fsuricata.git bytetest: use ByteExtractString instead of StringParse --- diff --git a/src/detect-bytetest.c b/src/detect-bytetest.c index 446f122bb3..244108d4f6 100644 --- a/src/detect-bytetest.c +++ b/src/detect-bytetest.c @@ -382,7 +382,7 @@ static DetectBytetestData *DetectBytetestParse(const char *optstr, char **value, if (*value == NULL) goto error; } else { - if (StringParseUint64(&data->value, 0, 0, test_value) <= 0) { + if (ByteExtractStringUint64(&data->value, 0, 0, test_value) <= 0) { SCLogError(SC_ERR_INVALID_VALUE, "Malformed value: %s", test_value); goto error; }