Use suser_cred() instead of a direct comparison of cr_uid with 0 in

rip6_output().

MFC after:	1 week
This commit is contained in:
Robert Watson 2006-06-25 13:54:59 +00:00
parent 450ec4ed45
commit 1e0acb6801

View File

@ -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) {