From: Victor Julien Date: Tue, 9 Apr 2019 08:12:19 +0000 (+0200) Subject: detect/byteextract: suppress runtime error messages X-Git-Tag: suricata-5.0.0-beta1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5703ce371efa8cfe1c368ff19815572d17c3ad7d;p=thirdparty%2Fsuricata.git detect/byteextract: suppress runtime error messages --- 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; } }