summaryrefslogtreecommitdiff
path: root/include/modules/ssl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/ssl.h')
-rw-r--r--include/modules/ssl.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h
index edea45a10..69bd65009 100644
--- a/include/modules/ssl.h
+++ b/include/modules/ssl.h
@@ -195,9 +195,7 @@ class SSLIOHook : public IOHook
*/
ssl_cert* GetCertificate() const
{
- if (certificate && certificate->IsUsable())
- return certificate;
- return NULL;
+ return certificate;
}
/**
@@ -208,7 +206,7 @@ class SSLIOHook : public IOHook
std::string GetFingerprint() const
{
ssl_cert* cert = GetCertificate();
- if (cert)
+ if (cert && certificate->IsUsable())
return cert->GetFingerprint();
return "";
}