libafs: allow bkg daemon requests without creds
[openafs.git] / src / afs / afs_daemons.c
index 0aab8c9..e50431f 100644 (file)
@@ -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);
            }