From bf56fa726e1d6ed228fde841e6312d61122174da Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 27 Aug 2009 22:43:37 +0200 Subject: Connection: Noch eine Race Condition gefixt --- .../AuthBackendChallengeResponse/AuthBackendChallengeResponse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/AuthBackendChallengeResponse') 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()); } -- cgit v1.2.3