From: Justin Anderson Date: Tue, 30 Sep 2008 19:13:30 +0000 (+0000) Subject: Check for null saved password in kim_ui_prompter. Just because kim_os_get_saved_passw... X-Git-Tag: krb5-1.7-alpha1~387 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f59ef42b59804d23220afc23b2a72e817be03469;p=krb5.git 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 --- 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) {