diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-08-27 22:43:37 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-08-27 22:43:37 +0200 |
commit | bf56fa726e1d6ed228fde841e6312d61122174da (patch) | |
tree | 662195b887f69615571957cbaedd5c07aee7eef6 /src/modules | |
parent | 96b69222fa0c22d0eaefaae291e78913b2ae13e9 (diff) | |
download | mad-bf56fa726e1d6ed228fde841e6312d61122174da.tar mad-bf56fa726e1d6ed228fde841e6312d61122174da.zip |
Connection: Noch eine Race Condition gefixt
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/AuthBackendChallengeResponse/AuthBackendChallengeResponse.cpp | 4 |
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()); } |