From 91c001f93b0ad0aba0d3fdee12e6891a1851e2aa Mon Sep 17 00:00:00 2001 From: Gerardo Iglesias Galvan Date: Tue, 31 May 2011 18:37:33 -0500 Subject: [PATCH] Fix potential crash in initialization cleanup code --- src/detect-engine-siggroup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detect-engine-siggroup.c b/src/detect-engine-siggroup.c index 0ff6a77121..8850d1475f 100644 --- a/src/detect-engine-siggroup.c +++ b/src/detect-engine-siggroup.c @@ -888,6 +888,9 @@ static void SigGroupHeadFreeSigArraysHash2(DetectEngineCtx *de_ctx, htb = HashListTableGetListNext(htb)) { sgh = (SigGroupHead *)HashListTableGetListData(htb); + if (sgh == NULL) { + continue; + } if (sgh->init->sig_array != NULL) { detect_siggroup_sigarray_free_cnt++;