diff options
| author | 2024-02-25 22:26:22 +0000 | |
|---|---|---|
| committer | 2024-02-25 22:26:22 +0000 | |
| commit | 8bfb92a86e16a3155964404cd8d331b3b60b336d (patch) | |
| tree | c324e2f3780c513a34c2ee20ddb79254162ee4bb /src/modules/m_spanningtree/hmac.cpp | |
| parent | Rework SQL::PopulateUserInfo. (diff) | |
| parent | Fix erroneously sending RPL_CHANNELSMSG when a whois chanlist is blocked. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_spanningtree/hmac.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/hmac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/hmac.cpp b/src/modules/m_spanningtree/hmac.cpp index ce4e02e5c..c3a7e92b3 100644 --- a/src/modules/m_spanningtree/hmac.cpp +++ b/src/modules/m_spanningtree/hmac.cpp @@ -77,7 +77,7 @@ bool TreeSocket::ComparePass(const Link& link, const std::string& theirs) if (capab->auth_fingerprint) { /* Require fingerprint to exist and match */ - if (link.Fingerprint != fp) + if (!InspIRCd::TimingSafeCompare(link.Fingerprint, fp)) { ServerInstance->SNO.WriteToSnoMask('l', "Invalid TLS certificate fingerprint on link {}: need \"{}\" got \"{}\"", link.Name, link.Fingerprint, fp); |
