From b8b39cc666a6a5a17ca987f9f2d4c6458e91ed70 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 6 May 2026 11:12:42 +0100 Subject: 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. --- src/modules/m_dccallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dccallow.cpp') 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); -- cgit v1.3.1-10-gc9f91