QCryptographicHash: clear the result in QCH::reset() when using OpenSSL

OpenSSL implementation did not clear the previous result when
calling QCH::reset(). This could lead to not generating new hashes.

Change-Id: Ic83e6382038a2f8808af950b88e57316b90ef2bc
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit 1fe74c3bd3f727551b8168ee9f3e642d42233d55)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Jan Grulich 2022-12-14 08:35:56 +01:00 committed by Qt Cherry-pick Bot
parent d37ef31674
commit d124386e2a

View File

@ -560,8 +560,8 @@ void QCryptographicHashPrivate::reset() noexcept
break;
#endif
}
result.clear();
#endif // !QT_CONFIG(opensslv30)
result.clear();
}
#if QT_DEPRECATED_SINCE(6, 4)