(check_host): don't check for EAI_NODATA, because its depricated in RFC3493

Pointed out by Hajimu UMEMOTO <ume@mahoroba.org> on heimdal-discuss


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13168 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-12-02 11:25:01 +00:00
parent 82db71c5e3
commit c8e6b409c1

View File

@@ -159,10 +159,7 @@ check_host(krb5_context context, const char *path, char *data)
hostname[strcspn(hostname, "/")] = '\0';
ret = getaddrinfo(hostname, "telnet" /* XXX */, NULL, &ai);
if(ret != 0) {
if(ret == EAI_NODATA)
krb5_warnx(context, "%s: host not found (%s)", path, hostname);
else
krb5_warnx(context, "%s: %s (%s)", path, gai_strerror(ret), hostname);
krb5_warnx(context, "%s: %s (%s)", path, gai_strerror(ret), hostname);
return 1;
}
return 0;