From c49cf994a886a4af2fa21df36c2c0b3e9cad96fe Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 14 Jun 2005 23:20:42 +0000 Subject: [PATCH] Detection of "auth-agent@openssh.com" was too liberal. Spotted by Ben Rudiak-Gould. git-svn-id: svn://svn.tartarus.org/sgt/putty@5962 cda61777-01e9-0310-a592-d414129be87e --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index f5a36adf..1e675d2c 100644 --- 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 { -- 2.11.0