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:
parent
450ec4ed45
commit
1e0acb6801
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user