]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2472: Fixed krb5_krbhost_get_addrinfo()-parameters and make failure
authorGünther Deschner <gd@samba.org>
Tue, 21 Sep 2004 10:40:45 +0000 (10:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:44 +0000 (10:52 -0500)
of this call non-critical.

Thanks to Love for the patch and explaining the inner workings of
heimdal.

Guenther

source/libsmb/clikrb5.c

index de2f0cec18a3de41208c129916033222a6a568c5..2b0c05449375c191bfb377bcb1e0a0f40edbe9c5 100644 (file)
        krb5_error_code rc;
        int num_kdcs, i;
        struct sockaddr *sa;
-       struct addrinfo **ai;
+       struct addrinfo *ai;
 
        *addr_pp = NULL;
        *naddrs = 0;
        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)