aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_sslinfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp
index b473209f9..d4f3d939f 100644
--- a/src/modules/m_sslinfo.cpp
+++ b/src/modules/m_sslinfo.cpp
@@ -559,8 +559,11 @@ public:
{
// We are only interested in connection flags. If none have been
// given then we have nothing to do.
- if (!flags)
+ if (!flags && cmd.sslapi.GetCertificate(user)) {
+ cmd.sslapi.nosslext.Set(user);
+ cmd.sslapi.sslext.Unset(user);
return;
+ }
// We only care about the tls connection flag if the connection
// between the gateway and the server is secure.