diff options
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/tipc/server.c b/net/tipc/server.c index a57c8407cbf3..ab6183cdb121 100644 --- a/net/tipc/server.c +++ b/net/tipc/server.c | |||
@@ -90,6 +90,7 @@ static void tipc_clean_outqueues(struct tipc_conn *con); | |||
90 | static void tipc_conn_kref_release(struct kref *kref) | 90 | static void tipc_conn_kref_release(struct kref *kref) |
91 | { | 91 | { |
92 | struct tipc_conn *con = container_of(kref, struct tipc_conn, kref); | 92 | struct tipc_conn *con = container_of(kref, struct tipc_conn, kref); |
93 | struct sockaddr_tipc *saddr = con->server->saddr; | ||
93 | struct socket *sock = con->sock; | 94 | struct socket *sock = con->sock; |
94 | struct sock *sk; | 95 | struct sock *sk; |
95 | 96 | ||
@@ -99,6 +100,8 @@ static void tipc_conn_kref_release(struct kref *kref) | |||
99 | __module_get(sock->ops->owner); | 100 | __module_get(sock->ops->owner); |
100 | __module_get(sk->sk_prot_creator->owner); | 101 | __module_get(sk->sk_prot_creator->owner); |
101 | } | 102 | } |
103 | saddr->scope = -TIPC_NODE_SCOPE; | ||
104 | kernel_bind(sock, (struct sockaddr *)saddr, sizeof(*saddr)); | ||
102 | sk_release_kernel(sk); | 105 | sk_release_kernel(sk); |
103 | con->sock = NULL; | 106 | con->sock = NULL; |
104 | } | 107 | } |