]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Detection of "auth-agent@openssh.com" was too liberal. Spotted by
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 14 Jun 2005 23:20:42 +0000 (23:20 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 14 Jun 2005 23:20:42 +0000 (23:20 +0000)
Ben Rudiak-Gould.

[originally from svn r5962]

ssh.c

diff --git a/ssh.c b/ssh.c
index f5a36adf908dafd34ee4c629b3e5a2caf432fe04..1e675d2c4db80e608c704b0667b864629cba41a0 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -6357,7 +6357,7 @@ static void ssh2_msg_channel_open(Ssh ssh, struct Packet *pktin)
            }
        }
     } else if (typelen == 22 &&
-              !memcmp(type, "auth-agent@openssh.com", 3)) {
+              !memcmp(type, "auth-agent@openssh.com", 22)) {
        if (!ssh->agentfwd_enabled)
            error = "Agent forwarding is not enabled";
        else {