From: jacob Date: Tue, 14 Jun 2005 23:20:42 +0000 (+0000) Subject: Detection of "auth-agent@openssh.com" was too liberal. Spotted by X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/c49cf994a886a4af2fa21df36c2c0b3e9cad96fe 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 --- 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 {