aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/samplesshd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/samplesshd.c b/examples/samplesshd.c
index 1af866c..6f540c7 100644
--- a/examples/samplesshd.c
+++ b/examples/samplesshd.c
@@ -205,6 +205,10 @@ int main(int argc, char **argv){
printf("error accepting a connection : %s\n",ssh_get_error(sshbind));
return 1;
}
+ if (ssh_bind_accept(session)) {
+ printf("ssh_bind_accept: %s\n", ssh_get_error(session));
+ return 1;
+ }
do {
message=ssh_message_get(session);
if(!message)