diff options
Diffstat (limited to 'modules/spanningtree/hmac.cpp')
| -rw-r--r-- | modules/spanningtree/hmac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/spanningtree/hmac.cpp b/modules/spanningtree/hmac.cpp index 4a97bddbb..5dc8bd03d 100644 --- a/modules/spanningtree/hmac.cpp +++ b/modules/spanningtree/hmac.cpp @@ -74,7 +74,7 @@ bool TreeSocket::ComparePass(const Link& link, const std::string& theirs) capab->auth_challenge = !capab->ourchallenge.empty() && !capab->theirchallenge.empty(); const auto* sslhook = SSLIOHook::IsSSL(this); - const auto* sslcert = sslhook ? sslhook->GetCertificate() : nullptr; + const auto& sslcert = sslhook ? sslhook->GetCertificate() : nullptr; const auto sslcert_usable = sslcert && sslcert->IsUsable(); const auto fp = sslcert_usable ? sslcert->GetFingerprint() : ""; if (capab->auth_fingerprint) |
