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:
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user