Blame SOURCES/0004-src-fix-use-after-free.patch

3588fa
From 9fe9ae5010f159539b4fc51890b9f218422ee8d8 Mon Sep 17 00:00:00 2001
3588fa
From: Christopher Horler <cshorler@googlemail.com>
3588fa
Date: Mon, 8 Dec 2014 20:04:31 +0000
3588fa
Subject: [PATCH] src: fix use after free
3588fa
3588fa
Fixes: https://bugzilla.netfilter.org/show_bug.cgi?id=990
3588fa
3588fa
Signed-off-by: Christopher Horler <cshorler@googlemail.com>
3588fa
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
3588fa
(cherry picked from commit d48012fa7718195e3f897b01a36e4ba249aa6dfc)
3588fa
Signed-off-by: Phil Sutter <psutter@redhat.com>
3588fa
---
3588fa
 src/libnetfilter_cthelper.c | 2 +-
3588fa
 1 file changed, 1 insertion(+), 1 deletion(-)
3588fa
3588fa
diff --git a/src/libnetfilter_cthelper.c b/src/libnetfilter_cthelper.c
3588fa
index 297887040b20c..f8f58e6c9c5e8 100644
3588fa
--- a/src/libnetfilter_cthelper.c
3588fa
+++ b/src/libnetfilter_cthelper.c
3588fa
@@ -113,11 +113,11 @@ void nfct_helper_free(struct nfct_helper *h)
3588fa
 {
3588fa
 	int i;
3588fa
 
3588fa
-	free(h);
3588fa
 	for (i=0; i
3588fa
 		if (h->expect_policy[i])
3588fa
 			free(h->expect_policy[i]);
3588fa
 	}
3588fa
+	free(h);
3588fa
 }
3588fa
 EXPORT_SYMBOL(nfct_helper_free);
3588fa
 
3588fa
-- 
3588fa
2.23.0
3588fa