diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2003-09-17 21:13:16 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2003-09-17 21:13:16 +0000 |
| commit | f34f3a70977c267bfe6da187965bc4fa3df94e57 (patch) | |
| tree | 3e032685ad52acaa5134d37fdc74341fca7540ba | |
| parent | 4da51cdd8c65d28fd1e404d5d6200d9a68b0b47e (diff) | |
Notes
| -rw-r--r-- | sys/netinet/raw_ip.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 59f5f071d142b..0484f32c7514c 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -709,10 +709,8 @@ rip_pcblist(SYSCTL_HANDLER_ARGS) for (inp = LIST_FIRST(ripcbinfo.listhead), i = 0; inp && i < n; inp = LIST_NEXT(inp, inp_list)) { INP_LOCK(inp); - if (inp->inp_gencnt <= gencnt) { - if (cr_canseesocket(req->td->td_ucred, - inp->inp_socket)) - continue; + if (inp->inp_gencnt <= gencnt && + cr_canseesocket(req->td->td_ucred, inp->inp_socket) == 0) { /* XXX held references? */ inp_list[i++] = inp; } |
