diff options
Diffstat (limited to 'libssh/server.c')
-rw-r--r-- | libssh/server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/server.c b/libssh/server.c index 4060c54c..06d5879f 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -148,7 +148,8 @@ SSH_SESSION *ssh_bind_accept(SSH_BIND *ssh_bind){ session=ssh_new(); session->server=1; session->version=2; - session->fd=fd; + session->socket=ssh_socket_new(); + ssh_socket_set_fd(session->socket,fd); session->options=ssh_options_copy(ssh_bind->options); session->dsa_key=dsa; session->rsa_key=rsa; |