Skip to content
Snippets Groups Projects
Commit 05ba9f9f authored by Gisle Vanem's avatar Gisle Vanem
Browse files

libssh2_session_free() returns void. Fix "#endif".

parent 96f4af4d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment