[netfilter-cvslog] r4156 - trunk/libnfnetlink
laforge at netfilter.org
laforge at netfilter.org
Wed Jul 27 00:20:00 CEST 2005
Author: laforge at netfilter.org
Date: 2005-07-27 00:20:00 +0200 (Wed, 27 Jul 2005)
New Revision: 4156
Modified:
trunk/libnfnetlink/libnfnetlink.c
Log:
initialize 'peer' address correctly
Modified: trunk/libnfnetlink/libnfnetlink.c
===================================================================
--- trunk/libnfnetlink/libnfnetlink.c 2005-07-26 22:19:49 UTC (rev 4155)
+++ trunk/libnfnetlink/libnfnetlink.c 2005-07-26 22:20:00 UTC (rev 4156)
@@ -77,6 +77,8 @@
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) {
More information about the netfilter-cvslog
mailing list