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
- Lines: 9
- Date:
Mon Jan 12 15:28:28 1998
- Orig file:
v2.1.78/linux/net/netlink/af_netlink.c
- Orig date:
Sun Dec 21 22:36:17 1997
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