From: Michael Meffie Date: Thu, 6 Mar 2014 15:50:56 +0000 (-0500) Subject: libafs: allow bkg daemon requests without creds X-Git-Tag: upstream/1.8.0_pre1^2~751 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3db647e327bbb4621f4d66f85678424471453703;p=packages%2Fo%2Fopenafs.git libafs: allow bkg daemon requests without creds Make the creds argument optional for background daemon requests which do not need to pass a cred. Change-Id: Ic4ac69d746e8a84993069e37bdd0440622febd70 Reviewed-on: http://gerrit.openafs.org/10880 Tested-by: BuildBot Reviewed-by: D Brashear --- diff --git a/src/afs/afs_daemons.c b/src/afs/afs_daemons.c index 0aab8c921..e50431f79 100644 --- a/src/afs/afs_daemons.c +++ b/src/afs/afs_daemons.c @@ -702,7 +702,9 @@ afs_BQueue(short aopcode, struct vcache *avc, tb->opcode = aopcode; tb->vc = avc; tb->cred = acred; - crhold(tb->cred); + if (tb->cred) { + crhold(tb->cred); + } if (avc) { AFS_FAST_HOLD(avc); }