summaryrefslogtreecommitdiffstats
path: root/src/modules/AuthBackendChallengeResponse
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-27 22:43:37 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-27 22:43:37 +0200
commitbf56fa726e1d6ed228fde841e6312d61122174da (patch)
tree662195b887f69615571957cbaedd5c07aee7eef6 /src/modules/AuthBackendChallengeResponse
parent96b69222fa0c22d0eaefaae291e78913b2ae13e9 (diff)
downloadmad-bf56fa726e1d6ed228fde841e6312d61122174da.tar
mad-bf56fa726e1d6ed228fde841e6312d61122174da.zip
Connection: Noch eine Race Condition gefixt
Diffstat (limited to 'src/modules/AuthBackendChallengeResponse')
-rw-r--r--src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.cpp b/src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.cpp
index 39f2672..5878362 100644
--- a/src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.cpp
+++ b/src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.cpp
@@ -28,9 +28,9 @@ namespace AuthBackendChallengeResponse {
const std::string AuthBackendChallengeResponse::methodName = "Challenge-Response";
AuthBackendChallengeResponse::AuthContextChallengeResponse::AuthContextChallengeResponse(AuthBackendChallengeResponse *backend) : authenticated(false) {
- challenge.reserve(20);
+ challenge.reserve(32);
- for(int i = 0; i < 20; ++i)
+ for(int i = 0; i < 32; ++i)
challenge.push_back(backend->randomGenerator());
}