clear session->sftpInit_sftp unconditionally

This commit is contained in:
Daniel Stenberg 2009-05-24 23:51:59 +02:00
parent c5f335ad4f
commit 0357ce6c48

View File

@ -794,10 +794,9 @@ sftp_shutdown(LIBSSH2_SFTP *sftp)
rc = _libssh2_channel_free(sftp->channel); rc = _libssh2_channel_free(sftp->channel);
if (session->sftpInit_sftp) /* the SFTP stuff is freed by the stored "destructor" as part of the
/* the SFTP stuff is freed by the stored "destructor" as part of the channel free magic */
channel free magic */ session->sftpInit_sftp = NULL;
session->sftpInit_sftp = NULL;
return rc; return rc;
} }