summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-03 14:39:08 +0100
committerSadie Powell <sadie@witchery.services>2024-06-03 14:39:08 +0100
commitf80bdf06bace6d3e5c50ed982fe1c14451ae4518 (patch)
tree13c450725edc4b80ee969690af57591ed29efb4a /modules
parent2d6033c73f096990aaf58c7df7f0f3e40b54a695 (diff)
Fix a null pointer dereference in the sasl module.
Diffstat (limited to 'modules')
-rw-r--r--modules/sasl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sasl.cpp b/modules/sasl.cpp
index 91957d513..f9be602b8 100644
--- a/modules/sasl.cpp
+++ b/modules/sasl.cpp
@@ -302,7 +302,7 @@ public:
// If the user is already introduced then we log them in now.
// Otherwise, we send an SVSLOGIN to log them in later.
User *user = User::Find(session->uid);
- NickAlias *na = NickAlias::Find(nc->display);
+ NickAlias *na = nc ? NickAlias::Find(nc->display) : nullptr;
if (user)
{
if (na)