QCryptographicHash: move result.clear() to beginning of reset()
... from the end(). It was lonely down there, and prone to be overlooked when performing early returns in the #ifdef'ery above, as witnessed by the early returns in the OpenSSL3 code. Amends1fe74c3bd3
, itself amending633c136596
. Pick-to: 6.5 Change-Id: I8c941ecb5c4755d8823b2161544cf6f7fe75a239 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
1d167b515e
commit
9a18ca59ff
@ -464,6 +464,7 @@ QCryptographicHash::Algorithm QCryptographicHash::algorithm() const noexcept
|
||||
|
||||
void QCryptographicHashPrivate::reset() noexcept
|
||||
{
|
||||
result.clear();
|
||||
#ifdef USING_OPENSSL30
|
||||
if (method == QCryptographicHash::Blake2b_160 ||
|
||||
method == QCryptographicHash::Blake2b_256 ||
|
||||
@ -573,7 +574,6 @@ void QCryptographicHashPrivate::reset() noexcept
|
||||
#endif
|
||||
}
|
||||
#endif // !QT_CONFIG(opensslv30)
|
||||
result.clear();
|
||||
}
|
||||
|
||||
#if QT_DEPRECATED_SINCE(6, 4)
|
||||
|
Loading…
Reference in New Issue
Block a user