summaryrefslogtreecommitdiff
path: root/identity/CredentialData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'identity/CredentialData.cpp')
-rw-r--r--identity/CredentialData.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/identity/CredentialData.cpp b/identity/CredentialData.cpp
index 2189f909..74b995d8 100644
--- a/identity/CredentialData.cpp
+++ b/identity/CredentialData.cpp
@@ -538,8 +538,7 @@ AuthKeyData* CredentialData::findAuthKey_(bool allowUsingExhaustedKeys,
}
const AuthKeyData* CredentialData::selectAuthKey(bool allowUsingExhaustedKeys,
- bool allowUsingExpiredKeys,
- bool incrementUsageCount) {
+ bool allowUsingExpiredKeys) {
AuthKeyData* candidate;
// First try to find a un-expired key..
@@ -557,9 +556,7 @@ const AuthKeyData* CredentialData::selectAuthKey(bool allowUsingExhaustedKeys,
}
}
- if (incrementUsageCount) {
- candidate->useCount += 1;
- }
+ candidate->useCount += 1;
return candidate;
}