mirror of
https://github.com/moparisthebest/curl
synced 2024-10-31 23:55:01 -04:00
libssh2_session_free() returns void. Fix "#endif".
This commit is contained in:
parent
96f4af4db9
commit
05ba9f9fcd
@ -651,10 +651,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SSH_SESSION_FREE:
|
case SSH_SESSION_FREE:
|
||||||
rc = libssh2_session_free(ssh->ssh_session);
|
libssh2_session_free(ssh->ssh_session);
|
||||||
if (rc == LIBSSH2_ERROR_EAGAIN) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
ssh->ssh_session = NULL;
|
ssh->ssh_session = NULL;
|
||||||
state(conn, SSH_STOP);
|
state(conn, SSH_STOP);
|
||||||
result = sshc->actualCode;
|
result = sshc->actualCode;
|
||||||
@ -753,7 +750,7 @@ static CURLcode ssh_easy_statemach(struct connectdata *conn)
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif (LIBSSH2_APINO >= 200706012030)
|
#endif /* (LIBSSH2_APINO >= 200706012030) */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SSH setup and connection
|
* SSH setup and connection
|
||||||
|
Loading…
Reference in New Issue
Block a user