From 5703ce371efa8cfe1c368ff19815572d17c3ad7d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 9 Apr 2019 10:12:19 +0200 Subject: [PATCH] detect/byteextract: suppress runtime error messages --- src/detect-byte-extract.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/detect-byte-extract.c b/src/detect-byte-extract.c index 8afe2b982a..157f26aaaa 100644 --- a/src/detect-byte-extract.c +++ b/src/detect-byte-extract.c @@ -164,8 +164,8 @@ int DetectByteExtractDoMatch(DetectEngineThreadCtx *det_ctx, const SigMatchData SCLogDebug("No Numeric value"); return 0; } else { - SCLogError(SC_ERR_INVALID_NUM_BYTES, "Error extracting %d " - "bytes of string data: %d", data->nbytes, extbytes); + SCLogDebug("error extracting %d bytes of string data: %d", + data->nbytes, extbytes); return -1; } } @@ -174,8 +174,8 @@ int DetectByteExtractDoMatch(DetectEngineThreadCtx *det_ctx, const SigMatchData BYTE_BIG_ENDIAN : BYTE_LITTLE_ENDIAN; extbytes = ByteExtractUint64(&val, endianness, data->nbytes, ptr); if (extbytes != data->nbytes) { - SCLogError(SC_ERR_INVALID_NUM_BYTES, "Error extracting %d bytes " - "of numeric data: %d\n", data->nbytes, extbytes); + SCLogDebug("error extracting %d bytes of numeric data: %d", + data->nbytes, extbytes); return 0; } } -- 2.47.2