From 488c6c5fbe0d2f09d4c1381630c7f85c7716d217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 16 Apr 2009 08:19:08 +0000 Subject: [PATCH] Don't bother asking for password if there is no prompter. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25121 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/init_creds_pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index 9ce23fdaf..af7ba7068 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -1795,7 +1795,7 @@ krb5_get_init_creds_password(krb5_context context, if (ret) goto out; - if (ctx->password == NULL && password == NULL) { + if (prompter != NULL && ctx->password == NULL && password == NULL) { krb5_prompt prompt; krb5_data password_data; char *p, *q;