mirror of
https://github.com/Icinga/icinga2.git
synced 2026-03-27 04:43:42 -04:00
Merge pull request #9332 from Icinga/bugfix/compare-cluster-tickets-in-constant-time
Compare cluster tickets in constant time
This commit is contained in:
commit
178aaaeca9
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
|
|||
<< "Certificate request for CN '" << cn << "': Comparing received ticket '"
|
||||
<< ticket << "' with calculated ticket '" << realTicket << "'.";
|
||||
|
||||
if (ticket != realTicket) {
|
||||
if (!Utility::ComparePasswords(ticket, realTicket)) {
|
||||
Log(LogWarning, "JsonRpcConnection")
|
||||
<< "Ticket '" << ticket << "' for CN '" << cn << "' is invalid.";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue