summaryrefslogtreecommitdiffstats
path: root/runtime/glbl.c
diff options
context:
space:
mode:
authorAndre Lorbach <alorbach@adiscon.com>2013-07-23 11:31:00 +0200
committerAndre Lorbach <alorbach@adiscon.com>2013-07-23 11:31:00 +0200
commitd7ca5b2b1581b04cdc9b68a97865e8e98eee4f74 (patch)
tree3cf2f8f92eeb5c0e3391f175a2d5628a5ae121e7 /runtime/glbl.c
parent5721c4dff691503a28704155132ccba67361c202 (diff)
downloadrsyslog-d7ca5b2b1581b04cdc9b68a97865e8e98eee4f74.tar.gz
rsyslog-d7ca5b2b1581b04cdc9b68a97865e8e98eee4f74.tar.bz2
rsyslog-d7ca5b2b1581b04cdc9b68a97865e8e98eee4f74.zip
Added check if mainqueue cfg ptr is NULL in glblDestructMainqCnfObj function (glbl.c)
Diffstat (limited to 'runtime/glbl.c')
-rw-r--r--runtime/glbl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/glbl.c b/runtime/glbl.c
index 6af38e01..cbb9b20f 100644
--- a/runtime/glbl.c
+++ b/runtime/glbl.c
@@ -621,7 +621,10 @@ glblProcessMainQCnf(struct cnfobj *o)
void
glblDestructMainqCnfObj()
{
- nvlstChkUnused(mainqCnfObj->nvlst);
+ /* Only destruct if not NULL! */
+ if (mainqCnfObj != NULL) {
+ nvlstChkUnused(mainqCnfObj->nvlst);
+ }
cnfobjDestruct(mainqCnfObj);
mainqCnfObj = NULL;
}