From: Martti Rannanjärvi Date: Wed, 29 Aug 2018 14:22:22 +0000 (+0300) Subject: dns: Return the lookup error string to the querier X-Git-Tag: 2.3.9~1501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21f9b39bc9bf256c99aae23da1dd28e381563935;p=thirdparty%2Fdovecot%2Fcore.git dns: Return the lookup error string to the querier --- diff --git a/src/dns/dns-client.c b/src/dns/dns-client.c index c535f86bf6..209f486160 100644 --- a/src/dns/dns-client.c +++ b/src/dns/dns-client.c @@ -57,7 +57,7 @@ static int dns_client_input_args(struct connection *client, const char *const *a e->add_str("error", err); e_debug(e->event(), "Resolve failed: %s", err); o_stream_nsend_str(client->output, - t_strdup_printf("%d\n", ret)); + t_strdup_printf("%d\t%s\n", ret, err)); } else { ARRAY_TYPE(const_string) tmp; t_array_init(&tmp, ips_count);