From 4bd9d8240b571fdd8546af4eea3f4f148987d57c Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 21 Sep 2004 10:40:45 +0000 Subject: [PATCH] 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 --- source/libsmb/clikrb5.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c index de2f0cec18a..2b0c0544937 100644 --- a/source/libsmb/clikrb5.c +++ b/source/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) -- 2.47.3