diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 3b1208be7ac..e1dcf6fd293 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -460,6 +460,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 || @@ -569,7 +570,6 @@ void QCryptographicHashPrivate::reset() noexcept #endif } #endif // !QT_CONFIG(opensslv30) - result.clear(); } #if QT_DEPRECATED_SINCE(6, 4)