aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_dccallow.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-05-06 11:12:42 +0100
committerGravatar Sadie Powell2026-05-06 11:20:00 +0100
commitb8b39cc666a6a5a17ca987f9f2d4c6458e91ed70 (patch)
treebd13734e40b8ed9e967bc2243db1a134ccf2f422 /src/modules/m_dccallow.cpp
parentUpdate my email address. (diff)
Fix some rare null pointer dereferences.
This code is only ever called for internal serialisation which I don't think actually happens to these modules.
Diffstat (limited to 'src/modules/m_dccallow.cpp')
-rw-r--r--src/modules/m_dccallow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index ac056987f..9e0b46463 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -136,7 +136,7 @@ public:
while (!ts.StreamEnd())
{
// Check we have space for another entry.
- if (list->size() >= maxentries)
+ if (list && list->size() >= maxentries)
{
ServerInstance->Logs.Debug(MODNAME, "Oversized DCC allow list received for {}: {}",
user->uuid, value);