From: Jacob Nevins Date: Tue, 14 Jun 2005 23:20:42 +0000 (+0000) Subject: Detection of "auth-agent@openssh.com" was too liberal. Spotted by X-Git-Tag: 0.59~256 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=3c7cb747f6ca7f429820d24e24f2b079bed1c1fc;p=PuTTY.git Detection of "auth-agent@openssh.com" was too liberal. Spotted by Ben Rudiak-Gould. [originally from svn r5962] --- 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 {