From: Theodore Tso Date: Fri, 26 Feb 1993 21:10:45 +0000 (+0000) Subject: Fixed so that if the passed in addresses is NULL, default to using local X-Git-Tag: krb5-1.0-beta3~317 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb8db08929e359687e27a272dd70aa6760dc3c2d;p=krb5.git Fixed so that if the passed in addresses is NULL, default to using local host address. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2512 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 9b9fa8033..315ad021f 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -173,7 +173,10 @@ OLDDECLARG(krb5_kdc_rep **, ret_as_reply) etypes[0] = etype; request.etype = etypes; request.netypes = 1; - request.addresses = (krb5_address **) addrs; + if (!addrs) + krb5_os_localaddr(&request.addresses); + else + request.addresses = (krb5_address **) addrs; request.second_ticket = 0; request.authorization_data.ciphertext.length = 0; request.authorization_data.ciphertext.data = 0;