Merge pull request #2655 from Ryex/fix/json-parsing-validator-buffer-reset

fix(net/validators): ensure buffers are cleared and reset;
This commit is contained in:
Tayou
2024-07-18 09:11:29 +02:00
committed by GitHub
2 changed files with 15 additions and 3 deletions

View File

@@ -60,7 +60,11 @@ class ChecksumValidator : public Validator {
return true;
}
auto abort() -> bool override { return true; }
auto abort() -> bool override
{
m_checksum.reset();
return true;
}
auto validate(QNetworkReply&) -> bool override
{