From c3d9894deedc194cd7367c5d3a37cb918abcfd0d Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sat, 7 Dec 2002 04:17:23 +0000 Subject: [PATCH] * sendmsg.c (krb524_sendto_kdc): Update calls to locate_server() 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 | 5 +++++ src/krb524/sendmsg.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 6337292cb..2ea85862e 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,8 @@ +2002-12-06 Tom Yu + + * sendmsg.c (krb524_sendto_kdc): Update calls to locate_server() + and locate_kdc() to restrict protocol family to IPv4. + 2002-09-24 Ken Raeburn * Makefile.in (EXTRADEPSRCS): New variable. diff --git a/src/krb524/sendmsg.c b/src/krb524/sendmsg.c index 733da0b83..8cea52e01 100644 --- a/src/krb524/sendmsg.c +++ b/src/krb524/sendmsg.c @@ -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. */ -- 2.26.2