diff options
author | Damien Miller <djm@mindrot.org> | 2001-12-21 12:42:34 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-12-21 12:42:34 +1100 |
commit | ee11625d4309da4d4eb7a307a2a58f35354a001a (patch) | |
tree | 11bf0af76b554ec62d238faf1861211763ae18e2 /auth2.c | |
parent | 3afe375fd288327716a4a6f1cfc05b1ff6535152 (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.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2.c,v 1.74 2001/12/05 03:56:39 itojun Exp $"); | 26 | RCSID("$OpenBSD: auth2.c,v 1.75 2001/12/09 18:45:56 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
29 | 29 | ||
@@ -220,14 +220,8 @@ input_userauth_request(int type, int plen, void *ctxt) | |||
220 | authctxt->user, authctxt->service, user, service); | 220 | authctxt->user, authctxt->service, user, service); |
221 | } | 221 | } |
222 | /* reset state */ | 222 | /* reset state */ |
223 | dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, &protocol_error); | 223 | auth2_challenge_stop(authctxt); |
224 | authctxt->postponed = 0; | 224 | authctxt->postponed = 0; |
225 | #ifdef BSD_AUTH | ||
226 | if (authctxt->as) { | ||
227 | auth_close(authctxt->as); | ||
228 | authctxt->as = NULL; | ||
229 | } | ||
230 | #endif | ||
231 | 225 | ||
232 | /* try to authenticate user */ | 226 | /* try to authenticate user */ |
233 | m = authmethod_lookup(method); | 227 | m = authmethod_lookup(method); |