]> asedeno.scripts.mit.edu Git - PuTTY_svn.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)
git-svn-id: http://svn.tartarus.org/sgt/putty@5394 cda61777-01e9-0310-a592-d414129be87e

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;
     }