]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Per Gunnar Floe spotted a reversed test in sftp_cleanup_requests().
authorSimon Tatham <anakin@pobox.com>
Fri, 25 Feb 2005 09:59:24 +0000 (09:59 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 25 Feb 2005 09:59:24 +0000 (09:59 +0000)
[originally from svn r5394]

sftp.c

diff --git a/sftp.c b/sftp.c
index 4d9810fc7dd02e95700cf1a1b9e315abb616ac47..cee7f8ea31cc8335dfc987ece30895b7112f6da7 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;
     }