From f62b855a72c221335f157501d7a05ca1923a41a8 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Mon, 13 Nov 1995 01:39:39 +0000 Subject: [PATCH] * conv_creds.c (krb524_convert_creds_kdc): loop through all of the addresses returned by krb5_locate_kdc, don't just try the first one. * krb524d.c (do_connection): check for particular failures of decode_krb5_ticket, as well as for messages that are one int long (which will eliminate our own error replies.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7095 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb524/ChangeLog | 8 ++++++++ src/krb524/conv_creds.c | 25 +++++++++++++++++++++---- src/krb524/krb524d.c | 18 +++++++++++++++++- 3 files changed, 46 insertions(+), 5 deletions(-) diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 2dc9500db..0155f98ee 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,11 @@ +Sun Nov 12 04:29:08 1995 Mark W. Eichin + + * conv_creds.c (krb524_convert_creds_kdc): loop through all of the + addresses returned by krb5_locate_kdc, don't just try the first one. + * krb524d.c (do_connection): check for particular failures of + decode_krb5_ticket, as well as for messages that are one int long + (which will eliminate our own error replies.) + Mon Oct 9 11:34:24 1995 Ezra Peisach * Makefile.in: s/test/krb524test/ to handle screw case where test diff --git a/src/krb524/conv_creds.c b/src/krb524/conv_creds.c index cd62d4cb1..5ab295f2b 100644 --- a/src/krb524/conv_creds.c +++ b/src/krb524/conv_creds.c @@ -58,7 +58,7 @@ int krb524_convert_creds_kdc(context, v5creds, v4creds) CREDENTIALS *v4creds; { struct sockaddr_in *addrs; - int ret, naddrs; + int ret, naddrs, i; if ((ret = krb5_locate_kdc(context, &v5creds->server->realm, &addrs, &naddrs))) @@ -66,9 +66,26 @@ int krb524_convert_creds_kdc(context, v5creds, v4creds) if (naddrs == 0) ret = KRB5_KDC_UNREACH; else { - addrs[0].sin_port = 0; /* use krb524 default port */ - ret = krb524_convert_creds_addr(context, v5creds, v4creds, - (struct sockaddr *) &addrs[0]); + for (i = 0; i