diff options
author | benno <benno@FreeBSD.org> | 2002-09-14 08:56:10 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2002-09-14 08:56:10 +0000 |
commit | bb76739de046ae1f81a36e96d18f0ee3b1afd323 (patch) | |
tree | 06b9d9b41fdf686e5977929a617c002f9ea11cea /sys/netgraph | |
parent | 2689f8b40eaa44463eb3483912cc9943616e3e79 (diff) | |
download | FreeBSD-src-bb76739de046ae1f81a36e96d18f0ee3b1afd323.zip FreeBSD-src-bb76739de046ae1f81a36e96d18f0ee3b1afd323.tar.gz |
Reference the socket we're accepting.
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_ksocket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c index 0a2c57c..b3e53e4 100644 --- a/sys/netgraph/ng_ksocket.c +++ b/sys/netgraph/ng_ksocket.c @@ -1203,6 +1203,8 @@ ng_ksocket_finish_accept(priv_p priv) /* XXX KNOTE(&head->so_rcv.sb_sel.si_note, 0); */ + soref(so); + so->so_state &= ~SS_COMP; so->so_state |= SS_NBIO; so->so_head = NULL; |