From 77c9405023f549bc8fb0c243e0b39153ac41753e Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Fri, 25 Feb 2011 01:28:30 +0000 Subject: [PATCH] auth: Fix use of expires in PickClientSecObj 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 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/auth/authcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/authcon.c b/src/auth/authcon.c index e1ee955..171eb4d 100644 --- a/src/auth/authcon.c +++ b/src/auth/authcon.c @@ -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) -- 1.9.4