Skip to content

Commit

Permalink
push-notification: Fix crash with empty from/to header
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Dec 13, 2019
1 parent 546ea52 commit 82c948d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 82c948d

Please sign in to comment.