]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
Fix double free in guess_from_received_header().
[notmuch] / notmuch-reply.c
index 514bbc642654b8bcf3f352e6e9514ffe4ee7fb4b..dab69e664b6ee2f949b48106c15c8ea0dfd09e36 100644 (file)
@@ -406,6 +406,7 @@ guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message
        /* Now extract the last two components of the MTA host name
         * as domain and tld.
         */
        /* Now extract the last two components of the MTA host name
         * as domain and tld.
         */
+       domain = tld = NULL;
        while ((ptr = strsep (&token, delim)) != NULL) {
            if (*ptr == '\0')
                continue;
        while ((ptr = strsep (&token, delim)) != NULL) {
            if (*ptr == '\0')
                continue;