X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=checkalias.c;h=1e1d16339fe033fc082154c494d78f15b830e512;hb=f6c7034fdbeb25d7d8eb0e62c0fe5de563eb7b55;hp=2e50ea09222d3cd61b469b953839e41a6665c027;hpb=b5737df8b9eef8a7001432c1f88a7dcacf2e56a8;p=~andy%2Ffetchmail diff --git a/checkalias.c b/checkalias.c index 2e50ea09..1e1d1633 100644 --- a/checkalias.c +++ b/checkalias.c @@ -194,6 +194,15 @@ int is_host_alias(const char *name, struct query *ctl, struct addrinfo **res) switch (e) { case EAI_NONAME: /* specified host is unknown */ +#ifdef EAI_NODATA + /* EAI_NODATA was in the older RFC-2553, but that got + * obsoleted by RFC-3493 - there, EAI_NODATA is no longer + * valid, and modern operating systems no longer issue this + * error code. libesmtp/getaddrinfo.?, however, still does. + * (This was reported to Brian Stafford 2013-02-03.) + */ + case EAI_NODATA: /* specified host is unknown */ +#endif break; default: