diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 0f5959e3d2..7aedf0c639 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -655,7 +655,7 @@ uint32_t DnsQueryPatternSearch(DetectEngineThreadCtx *det_ctx, { SCEnter(); - uint32_t ret; + uint32_t ret = 0; if (flags & STREAM_TOSERVER) { if (det_ctx->sgh->mpm_dnsquery_ctx_ts == NULL)