Check for null saved password in kim_ui_prompter. Just because kim_os_get_saved_passw...
authorJustin Anderson <jander@mit.edu>
Tue, 30 Sep 2008 19:13:30 +0000 (19:13 +0000)
committerJustin Anderson <jander@mit.edu>
Tue, 30 Sep 2008 19:13:30 +0000 (19:13 +0000)
ticket:6055

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20784 dc483132-0cff-0310-8789-dd5450dbe970

src/kim/lib/kim_ui.c

index b585ff7a010f18100b89d4a8886881f07657a61f..cf97fb2d36926802fba60716881d3656e5cfb020 100644 (file)
@@ -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) {