(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:
@@ -159,10 +159,7 @@ check_host(krb5_context context, const char *path, char *data)
|
|||||||
hostname[strcspn(hostname, "/")] = '\0';
|
hostname[strcspn(hostname, "/")] = '\0';
|
||||||
ret = getaddrinfo(hostname, "telnet" /* XXX */, NULL, &ai);
|
ret = getaddrinfo(hostname, "telnet" /* XXX */, NULL, &ai);
|
||||||
if(ret != 0) {
|
if(ret != 0) {
|
||||||
if(ret == EAI_NODATA)
|
krb5_warnx(context, "%s: %s (%s)", path, gai_strerror(ret), hostname);
|
||||||
krb5_warnx(context, "%s: host not found (%s)", path, hostname);
|
|
||||||
else
|
|
||||||
krb5_warnx(context, "%s: %s (%s)", path, gai_strerror(ret), hostname);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user