From: Justin Anderson Date: Wed, 1 Oct 2008 13:57:19 +0000 (+0000) Subject: Check for NULL hints_array passed back from kim_os_selection_hints_get_selection_hint... X-Git-Tag: krb5-1.7-alpha1~381 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=16afa8ffad45c84aad9a3905be566a8d13130c63;p=krb5.git Check for NULL hints_array passed back from kim_os_selection_hints_get_selection_hints_array in kim_os_selection_hints_lookup_identity ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20790 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kim/lib/mac/kim_os_selection_hints.c b/src/kim/lib/mac/kim_os_selection_hints.c index 97d70db69..bc1a64868 100644 --- a/src/kim/lib/mac/kim_os_selection_hints.c +++ b/src/kim/lib/mac/kim_os_selection_hints.c @@ -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); }