From dec8cd80453207f6676fe0863fb7903c98b31d5d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 13 Dec 2019 13:35:06 +0200 Subject: [PATCH] push-notification: Fix crash with empty from/to header --- .../push-notification/push-notification-event-message-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/push-notification/push-notification-event-message-common.c b/src/plugins/push-notification/push-notification-event-message-common.c index 406ce81eb0..9c70756b21 100644 --- a/src/plugins/push-notification/push-notification-event-message-common.c +++ b/src/plugins/push-notification/push-notification-event-message-common.c @@ -18,6 +18,9 @@ static void decode_address_header(pool_t pool, const char *hdr, addr = message_address_parse(pool_datastack_create(), (const unsigned char *)hdr, strlen(hdr), 1, 0); + if (addr == NULL) + return; + display_name = addr->name; if (addr->domain == NULL) { /* group */ -- 2.47.3