dovecot-2.2: dns: Use EAI_NONAME, not EAI_ADDRFAMILY to indicate...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 5 20:33:18 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/556475a5c1be
changeset: 16652:556475a5c1be
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 05 20:33:01 2013 +0300
description:
dns: Use EAI_NONAME, not EAI_ADDRFAMILY to indicate "no addresses".
diffstat:
src/dns/dns-client.c | 2 +-
src/lib/net.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 42b2736f146b -r 556475a5c1be src/dns/dns-client.c
--- a/src/dns/dns-client.c Mon Aug 05 20:27:09 2013 +0300
+++ b/src/dns/dns-client.c Mon Aug 05 20:33:01 2013 +0300
@@ -36,7 +36,7 @@
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 -r 42b2736f146b -r 556475a5c1be src/lib/net.h
--- a/src/lib/net.h Mon Aug 05 20:27:09 2013 +0300
+++ b/src/lib/net.h Mon Aug 05 20:33:01 2013 +0300
@@ -45,8 +45,8 @@
#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
More information about the dovecot-cvs
mailing list