TS-1704 avoid the null pointer dereference in dns_result