* sendmsg.c (krb524_sendto_kdc): Update calls to locate_server()
authorTom Yu <tlyu@mit.edu>
Sat, 7 Dec 2002 04:17:23 +0000 (04:17 +0000)
committerTom Yu <tlyu@mit.edu>
Sat, 7 Dec 2002 04:17:23 +0000 (04:17 +0000)
and locate_kdc() to restrict protocol family to IPv4.

ticket: 1189
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15039 dc483132-0cff-0310-8789-dd5450dbe970

src/krb524/ChangeLog
src/krb524/sendmsg.c

index 6337292cbe3c117e2a7cdcb4b618f20260e75b90..2ea85862e101da6d681b2488fd75e9a15500a29c 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-06  Tom Yu  <tlyu@mit.edu>
+
+       * sendmsg.c (krb524_sendto_kdc): Update calls to locate_server()
+       and locate_kdc() to restrict protocol family to IPv4.
+
 2002-09-24  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in (EXTRADEPSRCS): New variable.
index 733da0b839065618a450842b5793809487a3a50c..8cea52e01e238db3f000e7f084f7002dedd4e6bb 100644 (file)
@@ -90,11 +90,13 @@ krb524_sendto_kdc (context, message, realm, reply, addr, addrlen)
 
     retval = internals.krb5_locate_server(context, realm, &al, 0,
                                          "krb524_server", "_krb524",
-                                         SOCK_DGRAM, port, 0);
+                                         SOCK_DGRAM, port,
+                                         0, PF_INET);
     if (retval == KRB5_REALM_CANT_RESOLVE || retval == KRB5_REALM_UNKNOWN) {
        /* Fallback heuristic: Assume krb524 port on every KDC might
           work.  */
-       retval = internals.krb5_locate_kdc(context, realm, &al, 0, SOCK_DGRAM);
+       retval = internals.krb5_locate_kdc(context, realm, &al, 0,
+                                          SOCK_DGRAM, PF_INET);
        /*
         * Bash the ports numbers.
         */