diff options
-rw-r--r-- | libssh/server.c | 1 | ||||
-rw-r--r-- | samplesshd.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c index 716d63d1..25f760ad 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -127,6 +127,7 @@ SSH_SESSION *ssh_bind_accept(SSH_BIND *ssh_bind){ session=ssh_new(ssh_options_copy(ssh_bind->options)); session->server=1; session->fd=fd; + session->options=ssh_options_copy(ssh_bind->options); return session; } diff --git a/samplesshd.c b/samplesshd.c index 0775a3b3..249f35df 100644 --- a/samplesshd.c +++ b/samplesshd.c @@ -40,6 +40,7 @@ int main(int argc, char **argv){ return 1; } printf("Socket connecté : %d\n",ssh_get_fd(session)); + ssh_accept(session); return 0; } |