diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-11-14 23:44:20 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-11-14 23:44:20 +0000 |
commit | 3e67b384d73df705034e3b5f016e3ee634c50498 (patch) | |
tree | 3f33d180b4e5c7e72907fe5f086e21cddfc3c7fc /usr.bin/ssh | |
parent | b0acbb161007922cc4f3a8d8f10889cf65e488f0 (diff) |
check no_agent_forwarding_flag for ssh-2, too
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/session.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index 1d80828588d..855f6d920e8 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.43 2000/11/06 23:04:56 markus Exp $"); +RCSID("$OpenBSD: session.c,v 1.44 2000/11/14 23:44:19 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -1421,6 +1421,10 @@ session_auth_agent_req(Session *s) { static int called = 0; packet_done(); + if (no_agent_forwarding_flag) { + debug("session_auth_agent_req: no_agent_forwarding_flag"); + return 0; + } if (called) { return 0; } else { |