patch-2.1.75 linux/net/netlink/af_netlink.c
Next file: linux/net/netsyms.c
Previous file: linux/net/ipv4/ip_forward.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Dec 21 17:41:30 1997
- Orig file:
v2.1.74/linux/net/netlink/af_netlink.c
- Orig date:
Tue Dec 2 09:49:40 1997
diff -u --recursive --new-file v2.1.74/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 (!suser() && nladdr->nl_groups)
+ if (nladdr->nl_groups && !suser())
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