use krb5_eai_to_heim_errno

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8587 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-07-08 13:06:07 +00:00
parent d45fccaa9d
commit 5d9b607c1a
4 changed files with 6 additions and 4 deletions

View File

@@ -523,7 +523,7 @@ krb5_parse_address(krb5_context context,
error = getaddrinfo (string, NULL, NULL, &ai);
if (error)
return -1;
return krb5_eai_to_heim_errno(error);
n = 0;
for (a = ai; a != NULL; a = a->ai_next)

View File

@@ -55,7 +55,9 @@ get_kdc_address (krb5_context context,
error = roken_getaddrinfo_hostspec(*hostlist, port, ai);
krb5_free_krbhst (context, hostlist);
return error;
if(error)
return krb5_eai_to_heim_errno(error);
return 0;
}
static krb5_error_code

View File

@@ -144,7 +144,7 @@ krb5_get_forwarded_creds (krb5_context context,
ret = getaddrinfo (hostname, NULL, NULL, &ai);
if (ret)
return ret;
return krb5_eai_to_heim_errno(ret);
ret = add_addrs (context, &addrs, ai);
freeaddrinfo (ai);

View File

@@ -257,7 +257,7 @@ send_via_proxy (krb5_context context,
ret = getaddrinfo (proxy, portstr, NULL, &ai);
free (proxy);
if (ret)
return ret;
return krb5_eai_to_heim_errno(ret);
for (a = ai; a != NULL; a = a->ai_next) {
s = socket (a->ai_family, a->ai_socktype, a->ai_protocol);