Per Gunnar Floe spotted a reversed test in sftp_cleanup_requests().
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 25 Feb 2005 09:59:24 +0000 (09:59 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 25 Feb 2005 09:59:24 +0000 (09:59 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@5394 cda61777-01e9-0310-a592-d414129be87e

sftp.c

diff --git a/sftp.c b/sftp.c
index 4d9810f..cee7f8e 100644 (file)
--- a/sftp.c
+++ b/sftp.c
@@ -349,7 +349,7 @@ static struct sftp_request *sftp_alloc_request(void)
 
 void sftp_cleanup_request(void)
 {
-    if (sftp_requests == NULL) {
+    if (sftp_requests != NULL) {
        freetree234(sftp_requests);
        sftp_requests = NULL;
     }