fix segfault due to missing h->nfnlh initialization (Closes: #434) (Andreas Florath)
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>
Mon, 23 Jan 2006 17:03:33 +0000 (17:03 +0000)
committerr.kubiak <r.kubiak@samsung.com>
Mon, 16 Nov 2015 13:12:05 +0000 (14:12 +0100)
src/libnetfilter_queue.c

index 3c7b48f..ab19814 100644 (file)
@@ -171,6 +171,7 @@ struct nfq_handle *nfq_open_nfnl(struct nfnl_handle *nfnlh)
                return NULL;
 
        memset(h, 0, sizeof(*h));
+       h->nfnlh = nfnlh;
 
        h->nfnlssh = nfnl_subsys_open(h->nfnlh, NFNL_SUBSYS_QUEUE, 
                                      NFQNL_MSG_MAX, 0);