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

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