From 3c7cb747f6ca7f429820d24e24f2b079bed1c1fc Mon Sep 17 00:00:00 2001 From: Jacob Nevins 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. [originally from svn r5962] --- 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.45.2