diff options
| author | 2023-01-15 22:28:45 +0000 | |
|---|---|---|
| committer | 2023-01-15 22:28:45 +0000 | |
| commit | 769f9c0c340635cf401bdc92cb9a4c515ffeb0f3 (patch) | |
| tree | e4bfe0849a5f47acdc1fce4b685209696641e48a /src/modules/m_dccallow.cpp | |
| parent | Fix cloaking users with a non-IP hostname when using hmac-sha256-ip. (diff) | |
Fix some issues reported by scan-build.
All of these are harmless and should never cause an issue in practise.
Diffstat (limited to 'src/modules/m_dccallow.cpp')
| -rw-r--r-- | src/modules/m_dccallow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index bb0a6d2e2..67e28c93b 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -160,6 +160,13 @@ public: list->push_back(dccallow); } + // If we have an empty list then don't store it. + if (list->empty()) + { + delete list; + return; + } + // The value was well formed. Set(user, list); } |
