ccdefault.c:
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 21 Jul 2008 17:44:43 +0000 (17:44 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 21 Jul 2008 17:44:43 +0000 (17:44 +0000)
commitc618db64af29b04b651cc8f354eec4ef7cbc5298
tree9e2bb5620aaa558a17ff7e3caae3e2a49b7b5e53
parentf31c8b13535216496fc4946888b9535d4f7d03f2
ccdefault.c:
krb5_cc_default_name() is permitted to return a NULL
pointer as a valid output.  Passing a NULL pointer to
strcmp() will result in an exception as NULL is not
a valid input parameter to strcmp().

Save the output of krb5_cc_default_name() to a variable
and modify the conditional to set the new default ccache
name in the case where there is no existing default
ccache name.

ticket: 5080
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20551 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/ccache/ccdefault.c