Merge pull request #4845 from tyler92/fix-uninitialized-ntlm

fix(Net) Use of Uninitialized value in NTLMCredentials::parseChallengeMessage
This commit is contained in:
Günter Obiltschnig 2025-01-11 08:47:28 +01:00 committed by GitHub
commit 7297033be7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,7 +213,7 @@ bool NTLMCredentials::parseChallengeMessage(const unsigned char* buffer, std::si
reader >> zero;
if (zero != 0) return false;
Poco::UInt32 type;
Poco::UInt32 type = 0;
reader >> type;
if (type != NTLM_MESSAGE_TYPE_CHALLENGE) return false;