#4014: wrong string offset in HTTPCredentials::isNTLMCredentials

This commit is contained in:
Günter Obiltschnig 2023-07-10 21:37:45 +02:00
parent 15c6631352
commit 00e157da43

View File

@ -191,7 +191,7 @@ bool HTTPCredentials::isDigestCredentials(const std::string& header)
bool HTTPCredentials::isNTLMCredentials(const std::string& header)
{
return icompare(header, 0, 4, "NTLM") == 0 && (header.size() > 5 ? Poco::Ascii::isSpace(header[5]) : true);
return icompare(header, 0, 4, "NTLM") == 0 && (header.size() > 4 ? Poco::Ascii::isSpace(header[4]) : true);
}