summaryrefslogtreecommitdiffstats
path: root/libnfnetlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnfnetlink.c')
-rw-r--r--libnfnetlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnfnetlink.c b/libnfnetlink.c
index fb2895a..f0997fd 100644
--- a/libnfnetlink.c
+++ b/libnfnetlink.c
@@ -77,6 +77,8 @@ int nfnl_open(struct nfnl_handle *nfnlh, u_int8_t subsys_id,
nfnlh->local.nl_family = AF_NETLINK;
nfnlh->local.nl_groups = subscriptions;
+ nfnlh->peer.nl_family = AF_NETLINK;
+
err = bind(nfnlh->fd, (struct sockaddr *)&nfnlh->local,
sizeof(nfnlh->local));
if (err < 0) {