diff options
author | shin <shin@FreeBSD.org> | 2000-01-03 17:29:16 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-01-03 17:29:16 +0000 |
commit | 96ab44233fdd2ba4bab636d3901703530a2085ed (patch) | |
tree | 2e848d74b84d264227e2742cf536f29bdffcf902 /sys/netinet6 | |
parent | 80b06aacc83c45bff8c5ca824151b055c0921e4f (diff) | |
download | FreeBSD-src-96ab44233fdd2ba4bab636d3901703530a2085ed.zip FreeBSD-src-96ab44233fdd2ba4bab636d3901703530a2085ed.tar.gz |
prevent kernel panic at suspend/resume.
confirmed by: sanpei, joe
PR: kern/15742
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index a981c79..5338514 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -414,7 +414,7 @@ in6_control(so, cmd, data, ifp, p) int privileged; privileged = 0; - if (p && !suser(p)) + if (p == NULL || !suser(p)) privileged++; /* |