From 47df13c713c98329b9bc8eba1fb50d3914653f37 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Tue, 4 Feb 2003 22:12:00 +0000 Subject: [PATCH] Get addressless tickets by default By default Kerberos obtains addressless tickets. ticket: new Tags: enhancement git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15150 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 4 ++++ src/lib/krb5/krb/get_in_tkt.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 4a02cabd9..b27558ce4 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,7 @@ +2003-02-04 Sam Hartman + + * get_in_tkt.c (krb5_get_init_creds): Default to addressless tickets + 2003-01-12 Ezra Peisach * send_tgs.c (krb5_send_tgs): Free memory leak of TGS_REQ. diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index f165c1ca7..abd4525a1 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -885,8 +885,8 @@ krb5_get_init_creds(krb5_context context, /* it would be nice if this parsed out an address list, but that would be work. */ else if (((ret = krb5_libdefault_boolean(context, &client->realm, - "noaddresses", &tempint)) == 0) - && tempint) { + "noaddresses", &tempint)) != 0) + || (tempint == 0)) { ; } else { if ((ret = krb5_os_localaddr(context, &request.addresses))) -- 2.26.2