diff options
author | 2000-01-18 09:41:05 +0000 | |
---|---|---|
committer | 2000-01-18 09:41:05 +0000 | |
commit | 9718c5d516baa020746f91723e9868e3d888702f (patch) | |
tree | 1d75a081535c7864d7b7ad14a6dde8ff03db066e | |
parent | possible workaround to NetBSD PR 9189 (panic on sparc). not sure if it's right. (diff) | |
download | wireguard-openbsd-9718c5d516baa020746f91723e9868e3d888702f.tar.xz wireguard-openbsd-9718c5d516baa020746f91723e9868e3d888702f.zip |
fix user/1056, sshd keeps restrictions; dbt@meat.net
-rw-r--r-- | usr.bin/ssh/auth-rsa.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/usr.bin/ssh/auth-rsa.c b/usr.bin/ssh/auth-rsa.c index 00c7c342f0a..c0e7c9c96e4 100644 --- a/usr.bin/ssh/auth-rsa.c +++ b/usr.bin/ssh/auth-rsa.c @@ -16,7 +16,7 @@ */ #include "includes.h" -RCSID("$Id: auth-rsa.c,v 1.16 1999/12/02 23:05:08 markus Exp $"); +RCSID("$Id: auth-rsa.c,v 1.17 2000/01/18 09:41:05 markus Exp $"); #include "rsa.h" #include "packet.h" @@ -409,7 +409,22 @@ auth_rsa(struct passwd *pw, BIGNUM *client_n) packet_send_debug("Your host '%.200s' is not permitted to use this key for login.", get_canonical_hostname()); xfree(patterns); + /* key invalid for this host, reset flags */ authenticated = 0; + no_agent_forwarding_flag = 0; + no_port_forwarding_flag = 0; + no_pty_flag = 0; + no_x11_forwarding_flag = 0; + while (custom_environment) { + struct envstring *ce = custom_environment; + custom_environment = ce->next; + xfree(ce->s); + xfree(ce); + } + if (forced_command) { + xfree(forced_command); + forced_command = NULL; + } break; } xfree(patterns); |