Check for NULL hints_array passed back from kim_os_selection_hints_get_selection_hint...
authorJustin Anderson <jander@mit.edu>
Wed, 1 Oct 2008 13:57:19 +0000 (13:57 +0000)
committerJustin Anderson <jander@mit.edu>
Wed, 1 Oct 2008 13:57:19 +0000 (13:57 +0000)
ticket: 6055

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

src/kim/lib/mac/kim_os_selection_hints.c

index 97d70db692e540bc73baf587a853c5df96ae508e..bc1a64868bcbf2928a3e63c0c333e7c21985351c 100644 (file)
@@ -334,7 +334,7 @@ kim_error kim_os_selection_hints_lookup_identity (kim_selection_hints  in_select
         err = kim_os_selection_hints_get_selection_hints_array (&hints_array);
     }
     
-    if (!err) {
+    if (!err && hints_array) {
         count = CFArrayGetCount (hints_array);
     }