]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Fixup "lib-mail: message_address_write() - don't crash with NULL address"
authorVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 12 Mar 2018 10:42:46 +0000 (12:42 +0200)
committerVille Savolainen <villes@dovecot.fi>
Mon, 12 Mar 2018 13:11:16 +0000 (15:11 +0200)
 Remove content that did not belong to 9f2fe2782224266bf2a403f430de011cf3b9da9d

src/lib-mail/message-address.c

index 77192d62541d993cdfc8a33fb9f87cb8407ef782..5cb7815dea7f7953f09cd6269f8569b121ebe368 100644 (file)
@@ -433,13 +433,6 @@ void message_address_write(string_t *str, const struct message_address *addr)
        if (addr == NULL)
                return;
 
-       /* <> path */
-       if (addr->mailbox == NULL && addr->domain == NULL) {
-               i_assert(addr->next == NULL);
-               str_append(str, "<>");
-               return;
-       }
-
        /* a) mailbox@domain
           b) name <@route:mailbox@domain>
           c) group: .. ; */