summaryrefslogtreecommitdiff
path: root/modules/sasl.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-02 12:45:19 -0400
committerAdam <Adam@anope.org>2016-10-02 12:45:19 -0400
commita46c0ca4d813842063840dcead5b3c3b7fd4b070 (patch)
treea4a299435b10191f1f76364185b1310d98785ed4 /modules/sasl.cpp
parent398f08c3524a1f8b88de38844fe0e55c32f33c26 (diff)
Fail sasl external auth immediately if cert is empty
Diffstat (limited to 'modules/sasl.cpp')
-rw-r--r--modules/sasl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sasl.cpp b/modules/sasl.cpp
index 459c1ff18..e31b91d0e 100644
--- a/modules/sasl.cpp
+++ b/modules/sasl.cpp
@@ -109,7 +109,7 @@ class External : public Mechanism
}
else if (m.type == "C")
{
- if (!certs)
+ if (!certs || mysess->cert.empty())
{
GetService()->Fail(sess);
delete sess;