Detection of "auth-agent@openssh.com" was too liberal. Spotted by
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 14 Jun 2005 23:20:42 +0000 (23:20 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 14 Jun 2005 23:20:42 +0000 (23:20 +0000)
Ben Rudiak-Gould.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5962 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index f5a36ad..1e675d2 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 {