summaryrefslogtreecommitdiffstats
path: root/auth2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-12-21 12:42:34 +1100
committerDamien Miller <djm@mindrot.org>2001-12-21 12:42:34 +1100
commitee11625d4309da4d4eb7a307a2a58f35354a001a (patch)
tree11bf0af76b554ec62d238faf1861211763ae18e2 /auth2.c
parent3afe375fd288327716a4a6f1cfc05b1ff6535152 (diff)
- markus@cvs.openbsd.org 2001/12/09 18:45:56
[auth2.c auth2-chall.c auth.h] add auth2_challenge_stop(), simplifies cleanup of kbd-int sessions, fixes memleak.
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/auth2.c b/auth2.c
index 3cfba7a6..29bbdf4f 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth2.c,v 1.74 2001/12/05 03:56:39 itojun Exp $");
+RCSID("$OpenBSD: auth2.c,v 1.75 2001/12/09 18:45:56 markus Exp $");
#include <openssl/evp.h>
@@ -220,14 +220,8 @@ input_userauth_request(int type, int plen, void *ctxt)
authctxt->user, authctxt->service, user, service);
}
/* reset state */
- dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, &protocol_error);
+ auth2_challenge_stop(authctxt);
authctxt->postponed = 0;
-#ifdef BSD_AUTH
- if (authctxt->as) {
- auth_close(authctxt->as);
- authctxt->as = NULL;
- }
-#endif
/* try to authenticate user */
m = authmethod_lookup(method);