summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_divert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index 1f8bb48..ef4bb85 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -419,7 +419,9 @@ div_attach(struct socket *so, int proto, struct thread *td)
/* The socket is always "connected" because
we always know "where" to send the packet */
INP_UNLOCK(inp);
+ SOCK_LOCK(so);
so->so_state |= SS_ISCONNECTED;
+ SOCK_UNLOCK(so);
return 0;
}
OpenPOWER on IntegriCloud