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

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