diff options
author | 2025-06-01 20:32:47 +0100 | |
---|---|---|
committer | 2025-06-01 20:32:47 +0100 | |
commit | 4f8ae67010735098589a883c62f03f2b3ea63ea1 (patch) | |
tree | 26a64de287423a50ff69bc0a4a4fdb5e099f3b8e | |
parent | a5372622f33f44ac83f28bc09ff8b79cb2676ef5 (diff) | |
download | sst-4f8ae67010735098589a883c62f03f2b3ea63ea1.tar.gz sst-4f8ae67010735098589a883c62f03f2b3ea63ea1.zip |
Check for a null srvdll in sst_dbg_sendtables
Avoids crashing if we couldn't get the interface for whatever reason.
Apparently bill ran into such a case.
-rw-r--r-- | src/dbg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -127,6 +127,10 @@ static void dumptable(struct SendTable *st, int indent) { } } DEF_CCMD_HERE(sst_dbg_sendtables, "Dump ServerClass/SendTable hierarchy", 0) { + if (!srvdll) { + errmsg_errorx("can't iterate ServerClass list: missing srvdll global"); + return; + } for (struct ServerClass *class = GetAllServerClasses(srvdll); class; class = class->next) { struct SendTable *st = class->table; |