aboutsummaryrefslogtreecommitdiff
path: root/src/bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bind.c')
-rw-r--r--src/bind.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bind.c b/src/bind.c
index e4c9327e..8132e3e9 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -454,8 +454,7 @@ int ssh_bind_accept(ssh_bind sshbind, ssh_session session) {
#else
close(fd);
#endif
- if (session->socket)
- ssh_socket_close(session->socket);
+ ssh_socket_free(session->socket);
}
return rc;
}