diff options
author | Colin Watson <cjwatson@debian.org> | 2014-10-07 12:13:50 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-10-07 12:13:50 +0100 |
commit | 487bdb3a5ef6075887b830ccb8a0b14f6da78e93 (patch) | |
tree | a2cff6fec1e6c4b4153a170a3e172cfe6bfdec46 /auth-bsdauth.c | |
parent | 796ba4fd011b5d0d9d78d592ba2f30fc9d5ed2e7 (diff) | |
parent | 28453d58058a4d60c3ebe7d7f0c31a510cbf6158 (diff) |
Import openssh_6.7p1.orig.tar.gz
Diffstat (limited to 'auth-bsdauth.c')
-rw-r--r-- | auth-bsdauth.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/auth-bsdauth.c b/auth-bsdauth.c index 0b3262b49..37ff893e6 100644 --- a/auth-bsdauth.c +++ b/auth-bsdauth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth-bsdauth.c,v 1.11 2007/09/21 08:15:29 djm Exp $ */ | 1 | /* $OpenBSD: auth-bsdauth.c,v 1.13 2014/06/24 01:13:21 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -26,6 +26,8 @@ | |||
26 | #include "includes.h" | 26 | #include "includes.h" |
27 | 27 | ||
28 | #include <sys/types.h> | 28 | #include <sys/types.h> |
29 | #include <stdarg.h> | ||
30 | #include <stdio.h> | ||
29 | 31 | ||
30 | #include <stdarg.h> | 32 | #include <stdarg.h> |
31 | 33 | ||
@@ -54,6 +56,11 @@ bsdauth_query(void *ctx, char **name, char **infotxt, | |||
54 | Authctxt *authctxt = ctx; | 56 | Authctxt *authctxt = ctx; |
55 | char *challenge = NULL; | 57 | char *challenge = NULL; |
56 | 58 | ||
59 | *infotxt = NULL; | ||
60 | *numprompts = 0; | ||
61 | *prompts = NULL; | ||
62 | *echo_on = NULL; | ||
63 | |||
57 | if (authctxt->as != NULL) { | 64 | if (authctxt->as != NULL) { |
58 | debug2("bsdauth_query: try reuse session"); | 65 | debug2("bsdauth_query: try reuse session"); |
59 | challenge = auth_getitem(authctxt->as, AUTHV_CHALLENGE); | 66 | challenge = auth_getitem(authctxt->as, AUTHV_CHALLENGE); |