From 3db647e327bbb4621f4d66f85678424471453703 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Thu, 6 Mar 2014 10:50:56 -0500 Subject: [PATCH] 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 --- src/afs/afs_daemons.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.5