patch-2.1.79 linux/net/netlink/af_netlink.c

Next file: linux/net/netrom/nr_dev.c
Previous file: linux/net/netbeui/netbeui_name.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/net/netlink/af_netlink.c linux/net/netlink/af_netlink.c
@@ -315,7 +315,7 @@
 		return -EINVAL;
 
 	/* Only superuser is allowed to send multicasts */
-	if (nladdr->nl_groups && !suser())
+	if (!suser() && nladdr->nl_groups)
 		return -EPERM;
 
 	sk->protinfo.af_netlink.dst_pid = nladdr->nl_pid;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov