]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/byte: update comments to reflect current parsing logic
authorFupeng Zhao <fupeng.zhao@foxmail.com>
Thu, 19 Jun 2025 06:14:30 +0000 (14:14 +0800)
committerVictor Julien <victor@inliniac.net>
Fri, 27 Jun 2025 16:58:42 +0000 (18:58 +0200)
src/detect-byte-extract.c

index 701feff4cbdacd51042921e7a7b73bd7173a7e2d..3b691373261eb44355c9e9f26bfb455ca1e7f7c3 100644 (file)
@@ -129,7 +129,7 @@ int DetectByteExtractDoMatch(DetectEngineThreadCtx *det_ctx, const SigMatchData
         extbytes = ByteExtractStringUint64(&val, data->base,
                                            data->nbytes, (const char *)ptr);
         if (extbytes <= 0) {
-            /* strtoull() return 0 if there is no numeric value in data string */
+            /* ByteExtractStringUint64() set val to 0 if there is no numeric value in data string */
             if (val == 0) {
                 SCLogDebug("No Numeric value");
                 return 0;