]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
bytetest: use ByteExtractString instead of StringParse 5207/head
authorShivani Bhardwaj <shivanib134@gmail.com>
Tue, 21 Jul 2020 08:16:18 +0000 (13:46 +0530)
committerVictor Julien <victor@inliniac.net>
Tue, 21 Jul 2020 14:50:26 +0000 (16:50 +0200)
src/detect-bytetest.c

index 446f122bb363386eeeabdbebd1f4e6c4e141f4a5..244108d4f635d2c6ec443dfb2d9ef2b3ca39eae9 100644 (file)
@@ -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;
             }