summaryrefslogtreecommitdiff
path: root/auth-bsdauth.c
diff options
context:
space:
mode:
authordjm <djm>2014-04-20 03:00:11 +0000
committerdjm <djm>2014-04-20 03:00:11 +0000
commit98fbdb8cdc87c0816cde6b454e415ad04ba82714 (patch)
tree7dd6f3b401f3c64c0a424d671e5179f51423eddf /auth-bsdauth.c
parentdbd2c18856e9df8c22054d7ea3241e8ab2f2c612 (diff)
downloadopenssh-98fbdb8cdc87c0816cde6b454e415ad04ba82714.tar.gz
- djm@cvs.openbsd.org 2014/03/12 04:50:32
[auth-bsdauth.c ssh-keygen.c] don't count on things that accept arguments by reference to clear things for us on error; most things do, but it's unsafe form.
Diffstat (limited to 'auth-bsdauth.c')
-rw-r--r--auth-bsdauth.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/auth-bsdauth.c b/auth-bsdauth.c
index 0b3262b4..f4209c22 100644
--- a/auth-bsdauth.c
+++ b/auth-bsdauth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-bsdauth.c,v 1.11 2007/09/21 08:15:29 djm Exp $ */
+/* $OpenBSD: auth-bsdauth.c,v 1.12 2014/03/12 04:50:32 djm Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -54,6 +54,11 @@ bsdauth_query(void *ctx, char **name, char **infotxt,
Authctxt *authctxt = ctx;
char *challenge = NULL;
+ *infotxt = NULL;
+ *numprompts = 0;
+ *prompts = NULL;
+ *echo_on = NULL;
+
if (authctxt->as != NULL) {
debug2("bsdauth_query: try reuse session");
challenge = auth_getitem(authctxt->as, AUTHV_CHALLENGE);