]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-nim-plugin-20070331
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 31 Mar 2007 13:53:49 +0000 (13:53 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 31 Mar 2007 13:53:49 +0000 (13:53 +0000)
correct a NULL pointer de-reference introduced in
windows-nim-plugin-20070328

(cherry picked from commit 20890b4e2edb6d1803148493e0f83d44c4e8a8d6)

src/WINNT/netidmgr_plugin/afsfuncs.c

index 2b4ea4de05f71db1a55b259a6a423b0ebdc1d59b..9a6e7a17e6559b256cccacfd0da5f5fc1fff8aff 100644 (file)
@@ -880,7 +880,7 @@ afs_klog(khm_handle identity,
        * and try again.  Perhaps there are two service tickets for the
        * 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_free_creds(context, k5creds);
            k5creds = NULL;