Skip to content

Commit

Permalink
QCryptographicHash: clear the result in QCH::reset() when using OpenSSL
Browse files Browse the repository at this point in the history
OpenSSL implementation did not clear the previous result when
calling QCH::reset(). This could lead to not generating new hashes.

Pick-to: 6.5
Change-Id: Ic83e6382038a2f8808af950b88e57316b90ef2bc
Reviewed-by: Mårten Nordheim <[email protected]>
  • Loading branch information
grulja authored and Morten242 committed Dec 15, 2022
1 parent ce20b81 commit 1fe74c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/tools/qcryptographichash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ void QCryptographicHashPrivate::reset() noexcept
break;
#endif
}
result.clear();
#endif // !QT_CONFIG(opensslv30)
result.clear();
}

#if QT_DEPRECATED_SINCE(6, 4)
Expand Down

0 comments on commit 1fe74c3

Please sign in to comment.