]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dns: Use EAI_NONAME, not EAI_ADDRFAMILY to indicate "no addresses".
authorTimo Sirainen <tss@iki.fi>
Mon, 5 Aug 2013 17:33:01 +0000 (20:33 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 Aug 2013 17:33:01 +0000 (20:33 +0300)
src/dns/dns-client.c
src/lib/net.h

index dd7561e369459f51eddf9fb7991a1c98b95c9a2f..fd559947397d71c44be8b6e2c00376d774536215 100644 (file)
@@ -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,
index a31807bce7e7f20a0d3ce47ea36b3752a9dcbfe3..276285db8b57b15848bea684ef45a1155e491d06 100644 (file)
@@ -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