From 0357ce6c485fc8146050fb8306022612bc0930b1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 24 May 2009 23:51:59 +0200 Subject: [PATCH] clear session->sftpInit_sftp unconditionally --- src/sftp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sftp.c b/src/sftp.c index b8adfb27..41f618da 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -794,10 +794,9 @@ sftp_shutdown(LIBSSH2_SFTP *sftp) rc = _libssh2_channel_free(sftp->channel); - if (session->sftpInit_sftp) - /* the SFTP stuff is freed by the stored "destructor" as part of the - channel free magic */ - session->sftpInit_sftp = NULL; + /* the SFTP stuff is freed by the stored "destructor" as part of the + channel free magic */ + session->sftpInit_sftp = NULL; return rc; }