From: Benjamin Kaduk Date: Sat, 22 Mar 2014 19:28:46 +0000 (-0400) Subject: bcrypt keys are in the rxkad list, not the rxgk list X-Git-Tag: upstream/1.8.0_pre1^2~757 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5cc3aec78a4329885b450c15ce228fa6fb413fdf;p=packages%2Fo%2Fopenafs.git bcrypt keys are in the rxkad list, not the rxgk list Fix the presumed typo in the loop intended to skip them. Change-Id: I863fb12792b82d528938ad0598aa626880f11a41 Reviewed-on: http://gerrit.openafs.org/10947 Reviewed-by: Jeffrey Altman Tested-by: BuildBot --- diff --git a/src/auth/keys.c b/src/auth/keys.c index 54b700e23..0ab3f2934 100644 --- a/src/auth/keys.c +++ b/src/auth/keys.c @@ -930,7 +930,7 @@ pickBestKvno(struct afsconf_dir *dir, afsconf_keyType type) /* Except, if we're in the rxkad list, we might have a bcrypt entry that * has a kvno of 999. So we need to skip that one */ - while (type == afsconf_rxgk && kvnoEntry->kvno == 999) { + while (type == afsconf_rxkad && kvnoEntry->kvno == 999) { kvnoEntry = opr_queue_Prev(&typeEntry->kvnoList, struct kvnoList, link); if (opr_queue_IsEnd(&typeEntry->kvnoList, &kvnoEntry->link))