[libnetfilter_queue 3/4] Suppress double call of nfnl_subsys_close()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



nfnl_close() is calling nfnl_subsys_close() for all available
subsys. Thus it is not necessary to call it in the nfq_close()
function.

Signed-off-by: Eric Leblond <eric@xxxxxx>
---
 src/libnetfilter_queue.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/libnetfilter_queue.c b/src/libnetfilter_queue.c
index e7fbfcc..f5611dd 100644
--- a/src/libnetfilter_queue.c
+++ b/src/libnetfilter_queue.c
@@ -252,7 +252,6 @@ int nfq_close(struct nfq_handle *h)
 {
 	int ret;
 	
-	nfnl_subsys_close(h->nfnlssh);
 	ret = nfnl_close(h->nfnlh);
 	if (ret == 0)
 		free(h);
-- 
1.5.6.3

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux