mirror of
https://github.com/curl/curl.git
synced 2026-06-06 08:24:40 +03:00
libssh: Use SFTP_AIO_FREE() instead of sftp_aio_free()
Using convenience macro SFTP_AIO_FREE() for checking for non NULL before freeing and assigning NULL after freeing using sftp_aio_free(). Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com>
This commit is contained in:
parent
1a655aee4e
commit
bcdce27f59
1 changed files with 2 additions and 9 deletions
|
|
@ -1460,15 +1460,8 @@ static int myssh_in_SFTP_SHUTDOWN(struct Curl_easy *data,
|
|||
before we proceed */
|
||||
ssh_set_blocking(sshc->ssh_session, 0);
|
||||
#if LIBSSH_VERSION_INT > SSH_VERSION_INT(0, 11, 0)
|
||||
if(sshc->sftp_send_aio) {
|
||||
sftp_aio_free(sshc->sftp_send_aio);
|
||||
sshc->sftp_send_aio = NULL;
|
||||
}
|
||||
|
||||
if(sshc->sftp_recv_aio) {
|
||||
sftp_aio_free(sshc->sftp_recv_aio);
|
||||
sshc->sftp_recv_aio = NULL;
|
||||
}
|
||||
SFTP_AIO_FREE(sshc->sftp_send_aio);
|
||||
SFTP_AIO_FREE(sshc->sftp_recv_aio);
|
||||
#endif
|
||||
|
||||
if(sshc->sftp_file) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue