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
This commit is contained in:
Love Hörnquist Åstrand
2009-04-16 08:19:08 +00:00
parent 4aa92f9db1
commit 488c6c5fbe

View File

@@ -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;