If data == NULL, not store the config.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24911 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1315,6 +1315,7 @@ krb5_cc_set_config(krb5_context context, krb5_ccache id,
|
|||||||
if (ret && ret != KRB5_CC_NOTFOUND)
|
if (ret && ret != KRB5_CC_NOTFOUND)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
if (data) {
|
||||||
/* not that anyone care when this expire */
|
/* not that anyone care when this expire */
|
||||||
cred.times.authtime = time(NULL);
|
cred.times.authtime = time(NULL);
|
||||||
cred.times.endtime = cred.times.authtime + 3600 * 24 * 30;
|
cred.times.endtime = cred.times.authtime + 3600 * 24 * 30;
|
||||||
@@ -1324,6 +1325,7 @@ krb5_cc_set_config(krb5_context context, krb5_ccache id,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
ret = krb5_cc_store_cred(context, id, &cred);
|
ret = krb5_cc_store_cred(context, id, &cred);
|
||||||
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
krb5_free_cred_contents (context, &cred);
|
krb5_free_cred_contents (context, &cred);
|
||||||
|
Reference in New Issue
Block a user