From f80bdf06bace6d3e5c50ed982fe1c14451ae4518 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 3 Jun 2024 14:39:08 +0100 Subject: [PATCH] Fix a null pointer dereference in the sasl module. --- modules/sasl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)