summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_mlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_mlock.cpp b/src/modules/m_mlock.cpp
index 7e891f146..45ad7453e 100644
--- a/src/modules/m_mlock.cpp
+++ b/src/modules/m_mlock.cpp
@@ -47,7 +47,7 @@ public:
return MOD_RES_PASSTHRU;
std::string *mlock_str = mlock.get(channel);
- if (mlock_str->empty())
+ if (!mlock_str || mlock_str->empty())
return MOD_RES_PASSTHRU;
for (const char *modes = parameters[1].c_str(); *modes; modes++)