summaryrefslogtreecommitdiff
path: root/auth-rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-rsa.c')
-rw-r--r--auth-rsa.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/auth-rsa.c b/auth-rsa.c
index bc53b049b..9d9e74928 100644
--- a/auth-rsa.c
+++ b/auth-rsa.c
@@ -16,7 +16,7 @@
16 */ 16 */
17 17
18#include "includes.h" 18#include "includes.h"
19RCSID("$Id: auth-rsa.c,v 1.11 1999/12/06 00:47:28 damien Exp $"); 19RCSID("$Id: auth-rsa.c,v 1.12 2000/01/20 11:44:09 damien Exp $");
20 20
21#include "rsa.h" 21#include "rsa.h"
22#include "packet.h" 22#include "packet.h"
@@ -415,7 +415,22 @@ auth_rsa(struct passwd *pw, BIGNUM *client_n)
415 packet_send_debug("Your host '%.200s' is not permitted to use this key for login.", 415 packet_send_debug("Your host '%.200s' is not permitted to use this key for login.",
416 get_canonical_hostname()); 416 get_canonical_hostname());
417 xfree(patterns); 417 xfree(patterns);
418 /* key invalid for this host, reset flags */
418 authenticated = 0; 419 authenticated = 0;
420 no_agent_forwarding_flag = 0;
421 no_port_forwarding_flag = 0;
422 no_pty_flag = 0;
423 no_x11_forwarding_flag = 0;
424 while (custom_environment) {
425 struct envstring *ce = custom_environment;
426 custom_environment = ce->next;
427 xfree(ce->s);
428 xfree(ce);
429 }
430 if (forced_command) {
431 xfree(forced_command);
432 forced_command = NULL;
433 }
419 break; 434 break;
420 } 435 }
421 xfree(patterns); 436 xfree(patterns);