summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-06-25 13:54:59 +0000
committerrwatson <rwatson@FreeBSD.org>2006-06-25 13:54:59 +0000
commit7e8f1a7958cd52e8772e1f1431bf742b239ccebd (patch)
tree1814ab8db7ac4f77d073de1ac0da8abb01f289c0 /sys/netinet6
parent559e4b8ec04f7bf8863a5ef365f289d5e7329dec (diff)
downloadFreeBSD-src-7e8f1a7958cd52e8772e1f1431bf742b239ccebd.zip
FreeBSD-src-7e8f1a7958cd52e8772e1f1431bf742b239ccebd.tar.gz
Use suser_cred() instead of a direct comparison of cr_uid with 0 in
rip6_output(). MFC after: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/raw_ip6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index b298c7c..111f525 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -342,7 +342,7 @@ rip6_output(m, va_alist)
INP_LOCK(in6p);
priv = 0;
- if (so->so_cred->cr_uid == 0)
+ if (suser_cred(so->so_cred, SUSER_ALLOWJAIL) == 0)
priv = 1;
dst = &dstsock->sin6_addr;
if (control) {
OpenPOWER on IntegriCloud