From f59ef42b59804d23220afc23b2a72e817be03469 Mon Sep 17 00:00:00 2001 From: Justin Anderson Date: Tue, 30 Sep 2008 19:13:30 +0000 Subject: [PATCH] Check for null saved password in kim_ui_prompter. Just because kim_os_get_saved_password didn't return an error doesn't mean it successfully got a password ticket:6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20784 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kim/lib/kim_ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kim/lib/kim_ui.c b/src/kim/lib/kim_ui.c index b585ff7a0..cf97fb2d3 100644 --- a/src/kim/lib/kim_ui.c +++ b/src/kim/lib/kim_ui.c @@ -225,7 +225,7 @@ krb5_error_code kim_ui_prompter (krb5_context in_krb5_context, terr = kim_os_identity_get_saved_password (context->identity, (kim_string *) &reply); - if (!terr) { got_saved_password = 1; } + if (!terr && reply) { got_saved_password = 1; } } if (!got_saved_password) { -- 2.26.2