From 5c90e6e2885a60a1dc5de5ff697c93d6fe59a9cb Mon Sep 17 00:00:00 2001 From: "Olle E. Johansson" Date: Wed, 21 Dec 2022 14:54:34 +0100 Subject: [PATCH] DMQ: dmq_notification_address_list is initialized to NULL This code led to random and unpredictable behaviour when loading a configuration with multiple notification nodes. --- src/modules/dmq/dmq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/dmq/dmq.c b/src/modules/dmq/dmq.c index 843b7e3e4d2..f4a66c3d847 100644 --- a/src/modules/dmq/dmq.c +++ b/src/modules/dmq/dmq.c @@ -379,7 +379,7 @@ static int dmq_add_notification_address(modparam_t type, void * val) } /* initial allocation */ - if (dmq_notification_address_list == 0) { + if (dmq_notification_address_list == NULL) { dmq_notification_address_list = pkg_malloc(sizeof(str_list_t)); if (dmq_notification_address_list == NULL) { PKG_MEM_ERROR;