mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
windows-nim-plugin-20070331
correct a NULL pointer de-reference introduced in windows-nim-plugin-20070328
This commit is contained in:
parent
934f76fb18
commit
20890b4e2e
@ -880,7 +880,7 @@ afs_klog(khm_handle identity,
|
|||||||
* and try again. Perhaps there are two service tickets for the
|
* and try again. Perhaps there are two service tickets for the
|
||||||
* same service in the ccache.
|
* same service in the ccache.
|
||||||
*/
|
*/
|
||||||
if (k5creds->times.endtime < time(NULL)) {
|
if (r == 0 && k5creds && k5creds->times.endtime < time(NULL)) {
|
||||||
pkrb5_cc_remove_cred(context, k5cc, 0, k5creds);
|
pkrb5_cc_remove_cred(context, k5cc, 0, k5creds);
|
||||||
pkrb5_free_creds(context, k5creds);
|
pkrb5_free_creds(context, k5creds);
|
||||||
k5creds = NULL;
|
k5creds = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user