Before the change, the last loop in guess_from_received_header()
did not reset domain and tld variables to NULL. This leads to
double free error in some cases and possibly other bugs.
/* 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.
*/
while ((ptr = strsep (&token, delim)) != NULL) {
if (*ptr == '\0')
continue;
while ((ptr = strsep (&token, delim)) != NULL) {
if (*ptr == '\0')
continue;