auth: Fix use of expires in PickClientSecObj
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 25 Feb 2011 01:28:30 +0000 (01:28 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 26 Feb 2011 12:00:41 +0000 (04:00 -0800)
The expires pointer was being zeroed in PickClientSecObject, rather
than zeroing the value pointed to. This meant that we would never
return any expiry time for the selected token.

Change-Id: I9d8e29cdd0c14a1e839a6719390e7f690493f56c
Reviewed-on: http://gerrit.openafs.org/4052
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/auth/authcon.c

index e1ee955..171eb4d 100644 (file)
@@ -310,7 +310,7 @@ afsconf_PickClientSecObj(struct afsconf_dir *dir, afsconf_secflags flags,
     *sc = NULL;
     *scIndex = RX_SECIDX_NULL;
     if (expires)
-       expires = 0;
+       *expires = 0;
 
     if ( !(flags & AFSCONF_SECOPTS_NOAUTH) ) {
        if (!dir)