aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-06-13 14:01:48 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-06-13 14:01:48 +0000
commit05ba9f9fcdafb1cc6bf30f97b3ca41a127cef4b4 (patch)
treecf3b76133ef1d368d755b781bd3451953afdbc9b /lib
parent96f4af4db93c5ab39afa044dad6fd05d6b9a7247 (diff)
libssh2_session_free() returns void. Fix "#endif".
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 1c48f4505..23a1d3bda 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -468,7 +468,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
state(conn, SSH_AUTH_KEY);
} else {
state(conn, SSH_AUTH_DONE);
- }
+ }
break;
case SSH_AUTH_KEY:
@@ -651,10 +651,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
break;
case SSH_SESSION_FREE:
- rc = libssh2_session_free(ssh->ssh_session);
- if (rc == LIBSSH2_ERROR_EAGAIN) {
- break;
- }
+ libssh2_session_free(ssh->ssh_session);
ssh->ssh_session = NULL;
state(conn, SSH_STOP);
result = sshc->actualCode;
@@ -753,7 +750,7 @@ static CURLcode ssh_easy_statemach(struct connectdata *conn)
return result;
}
-#endif (LIBSSH2_APINO >= 200706012030)
+#endif /* (LIBSSH2_APINO >= 200706012030) */
/*
* SSH setup and connection