]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - ssh.c
Remove redundant check for NULL in sshfwd_close(). The thing we're
[PuTTY.git] / ssh.c
diff --git a/ssh.c b/ssh.c
index 43d642dd1c97aa3abc7357efd3c1f127524063ce..401706c4057c9022e130cc72883d5db36c4b7ae4 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -4164,7 +4164,7 @@ void sshfwd_close(struct ssh_channel *c)
     if (ssh->state == SSH_STATE_CLOSED)
        return;
 
-    if (c && !c->closes) {
+    if (!c->closes) {
        /*
         * If halfopen is true, we have sent
         * CHANNEL_OPEN for this channel, but it hasn't even been