detect/byteextract: suppress runtime error messages

pull/3788/head
Victor Julien 7 years ago
parent 7f63ec185a
commit 5703ce371e

@ -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;
}
}

Loading…
Cancel
Save