summaryrefslogtreecommitdiff
path: root/modules/m_sasl.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-02-13 18:25:04 -0500
committerAdam <Adam@anope.org>2016-02-13 18:25:04 -0500
commit413b38b1c1b6786d8abce2c77c3c3a7a7e0d3fe9 (patch)
tree6b390c5dd4e9fe06828d98cb2a0daddb561107c7 /modules/m_sasl.cpp
parentecdccd6ad61083db4f5ad8f2b0ea517e6a4d9499 (diff)
Fail sasl external auth immediately if cert is empty
Diffstat (limited to 'modules/m_sasl.cpp')
-rw-r--r--modules/m_sasl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/m_sasl.cpp b/modules/m_sasl.cpp
index e7c6b6e93..98a554259 100644
--- a/modules/m_sasl.cpp
+++ b/modules/m_sasl.cpp
@@ -97,7 +97,7 @@ class External : public Mechanism
}
else if (m.type == "C")
{
- if (!certs)
+ if (!certs || mysess->cert.empty())
{
sasl->Fail(sess);
delete sess;