From: Timo Sirainen Date: Mon, 5 Aug 2013 17:33:01 +0000 (+0300) Subject: dns: Use EAI_NONAME, not EAI_ADDRFAMILY to indicate "no addresses". X-Git-Tag: 2.2.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ef5fc9c4bfa0ee237f9e1d1d94ac5ac2f1bc04;p=thirdparty%2Fdovecot%2Fcore.git dns: Use EAI_NONAME, not EAI_ADDRFAMILY to indicate "no addresses". --- diff --git a/src/dns/dns-client.c b/src/dns/dns-client.c index dd7561e369..fd55994739 100644 --- a/src/dns/dns-client.c +++ b/src/dns/dns-client.c @@ -36,7 +36,7 @@ static int dns_client_input_line(struct dns_client *client, const char *line) ret = net_gethostbyname(line + 3, &ips, &ips_count); if (ret == 0 && ips_count == 0) { /* shouldn't happen, but fix it anyway.. */ - ret = EAI_ADDRFAMILY; + ret = EAI_NONAME; } if (ret != 0) { o_stream_nsend_str(client->output, diff --git a/src/lib/net.h b/src/lib/net.h index a31807bce7..276285db8b 100644 --- a/src/lib/net.h +++ b/src/lib/net.h @@ -45,8 +45,8 @@ struct net_unix_cred { #endif #ifndef HAVE_IPV6 -# undef EAI_ADDRFAMILY -# define EAI_ADDRFAMILY NO_ADDRESS +# undef EAI_NONAME +# define EAI_NONAME NO_ADDRESS # undef EAI_FAIL # define EAI_FAIL NO_RECOVERY #endif