summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_sasl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp
index 0bc888999..99ed87f50 100644
--- a/src/modules/m_sasl.cpp
+++ b/src/modules/m_sasl.cpp
@@ -238,6 +238,12 @@ class ModuleSASL : public Module
return;
User* target = ServerInstance->FindNick((*parameters)[2]);
+ if (!target)
+ {
+ ServerInstance->Logs->Log("m_sasl", DEBUG,"User not found in sasl ENCAP event: %s", (*parameters)[2].c_str());
+ return;
+ }
+
SaslAuthenticator *sasl;
if (!target->GetExt("sasl_authenticator", sasl))
return;