From 7798b661e93c895101b6875e0d7b40f88d35ab06 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 22 May 2014 18:57:16 +0000 Subject: - parse.c:mod_del_cmd(): make sure the command actually exists in the trie before attempting to remove it. We could end up in a corrupted trie otherwise. git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3616 82007160-df01-0410-b94d-b575c5fd34c7 --- src/parse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/parse.c b/src/parse.c index bf94a92..8e6362d 100644 --- a/src/parse.c +++ b/src/parse.c @@ -491,6 +491,9 @@ mod_del_cmd(struct Message *msg) { assert(msg && msg->cmd); + if (!msg_tree_parse(msg->cmd)) + return; + del_msg_element(&msg_tree, msg->cmd); } -- cgit