summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-09-21 10:40:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:44 -0500
commit83d5892eab7662053ca9ce3711d60760aadf6084 (patch)
treeb6d150c0023583f22d69013dc9c971c040ee1b0a
parent3b015a4cc7c0cd6b3662bc89a97df9769e57e7e6 (diff)
downloadsamba-83d5892eab7662053ca9ce3711d60760aadf6084.tar.gz
samba-83d5892eab7662053ca9ce3711d60760aadf6084.tar.bz2
samba-83d5892eab7662053ca9ce3711d60760aadf6084.zip
r2472: Fixed krb5_krbhost_get_addrinfo()-parameters and make failure
of this call non-critical. Thanks to Love for the patch and explaining the inner workings of heimdal. Guenther (This used to be commit 4bd9d8240b571fdd8546af4eea3f4f148987d57c)
-rw-r--r--source3/libsmb/clikrb5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index de2f0cec18..2b0c054493 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -190,7 +190,7 @@
krb5_error_code rc;
int num_kdcs, i;
struct sockaddr *sa;
- struct addrinfo **ai;
+ struct addrinfo *ai;
*addr_pp = NULL;
*naddrs = 0;
@@ -226,10 +226,10 @@
for (i = 0; i < num_kdcs && (rc = krb5_krbhst_next(ctx, hnd, &hinfo) == 0); i++) {
#if defined(HAVE_KRB5_KRBHST_GET_ADDRINFO)
- rc = krb5_krbhst_get_addrinfo(ctx, hinfo, ai);
+ rc = krb5_krbhst_get_addrinfo(ctx, hinfo, &ai);
if (rc) {
DEBUG(0,("krb5_krbhst_get_addrinfo failed: %s\n", error_message(rc)));
- return rc;
+ continue;
}
#endif
if (hinfo->ai && hinfo->ai->ai_family == AF_INET)