Suppress double call of nfnl_subsys_close()
authorEric Leblond <eric@inl.fr>
Wed, 17 Dec 2008 15:29:56 +0000 (16:29 +0100)
committerr.kubiak <r.kubiak@samsung.com>
Mon, 16 Nov 2015 13:12:05 +0000 (14:12 +0100)
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@inl.fr>
src/libnetfilter_queue.c

index e7fbfcc..f5611dd 100644 (file)
@@ -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);