summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJustin Anderson <jander@mit.edu>2008-09-30 19:13:30 +0000
committerJustin Anderson <jander@mit.edu>2008-09-30 19:13:30 +0000
commitf59ef42b59804d23220afc23b2a72e817be03469 (patch)
tree088f1b522a92f34842affed093714a98f4a22784 /src
parentf5e3b7a5c40e1f98ceabb7676cccd28a3009b335 (diff)
downloadkrb5-f59ef42b59804d23220afc23b2a72e817be03469.tar.gz
krb5-f59ef42b59804d23220afc23b2a72e817be03469.tar.xz
krb5-f59ef42b59804d23220afc23b2a72e817be03469.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/kim/lib/kim_ui.c2
1 files changed, 1 insertions, 1 deletions
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) {