Fix krb5_cc_set_config
authorGreg Hudson <ghudson@mit.edu>
Thu, 20 Oct 2011 03:45:12 +0000 (03:45 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 20 Oct 2011 03:45:12 +0000 (03:45 +0000)
commitc0a51fe0c8051e27c6cee4f4f0c705356a715e1e
treec80e236498a21dcfe69e1ebc376d4e61019ca9b0
parent693aa765f22bb1cffd8eabef6707d5d87ea42f47
Fix krb5_cc_set_config

krb5_cc_set_config has been non-functional since r24753 on cache types
which don't support removal of credential entries.  Fix it by only
calling krb5_cc_remove_cred if data is NULL, since krb5_cc_store_cred
will do it anyway in the positive case.

Also fix an old memory leak in an uncommon error case.

ticket: 6987
target_version: 1.10
tags: pullup

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