mirror of
https://github.com/OISF/suricata.git
synced 2026-10-11 22:09:53 +00:00
cppcheck: drop unreachable DEBUG_VALIDATE_BUG_ONs
Remove unreachable DEBUG_VALIDATE_BUG_ON statements.
This commit is contained in:
@@ -1970,7 +1970,6 @@ static int StreamTcp3whsStoreSyn(TcpSession *ssn, Packet *p)
|
||||
return 0;
|
||||
|
||||
if (ssn->queue != NULL && ssn->queue_len == stream_config.max_syn_queued) {
|
||||
DEBUG_VALIDATE_BUG_ON(ssn->queue == NULL);
|
||||
SCLogDebug("%" PRIu64 ": ssn %p: =~ SYN queue limit reached, rotate", PcapPacketCntGet(p),
|
||||
ssn);
|
||||
StreamTcpSetEvent(p, STREAM_3WHS_SYN_FLOOD);
|
||||
|
||||
@@ -187,7 +187,6 @@ int FileSwfLzmaDecompression(DetectEngineThreadCtx *det_ctx, const uint8_t *comp
|
||||
DetectEngineSetEvent(det_ctx, FILE_DECODER_EVENT_LZMA_MEMLIMIT_ERROR);
|
||||
} else if (ret == LzmaXzError) {
|
||||
/* We should not see XZ compressed SWF files */
|
||||
DEBUG_VALIDATE_BUG_ON(ret == LzmaXzError);
|
||||
DetectEngineSetEvent(det_ctx, FILE_DECODER_EVENT_LZMA_XZ_ERROR);
|
||||
} else {
|
||||
DetectEngineSetEvent(det_ctx, FILE_DECODER_EVENT_LZMA_UNKNOWN_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user