1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-27 02:02:26 +00:00

Detection of "auth-agent@openssh.com" was too liberal. Spotted by

Ben Rudiak-Gould.

[originally from svn r5962]
This commit is contained in:
Jacob Nevins 2005-06-14 23:20:42 +00:00
parent bb95adf054
commit 3c7cb747f6

2
ssh.c
View File

@ -6357,7 +6357,7 @@ static void ssh2_msg_channel_open(Ssh ssh, struct Packet *pktin)
} }
} }
} else if (typelen == 22 && } else if (typelen == 22 &&
!memcmp(type, "auth-agent@openssh.com", 3)) { !memcmp(type, "auth-agent@openssh.com", 22)) {
if (!ssh->agentfwd_enabled) if (!ssh->agentfwd_enabled)
error = "Agent forwarding is not enabled"; error = "Agent forwarding is not enabled";
else { else {