resolved: when following a CNAME, turn off search domains

If the first step was done via a search domain, make sure the subsequent steps are not.
This commit is contained in:
Lennart Poettering 2016-01-18 21:31:16 +01:00
parent 7820b320ea
commit 59a899908f

View file

@ -1242,6 +1242,9 @@ static int dns_query_cname_redirect(DnsQuery *q, const DnsResourceRecord *cname)
dns_query_reset_answer(q);
q->state = DNS_TRANSACTION_NULL;
/* Turn off searching for the new name */
q->flags |= SD_RESOLVED_NO_SEARCH;
return 0;
}