Fixed so that if the passed in addresses is NULL, default to using local
authorTheodore Tso <tytso@mit.edu>
Fri, 26 Feb 1993 21:10:45 +0000 (21:10 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 26 Feb 1993 21:10:45 +0000 (21:10 +0000)
host address.

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

src/lib/krb5/krb/get_in_tkt.c

index 9b9fa80337a10fbb2f5599c2a25c3e55a779026f..315ad021ff5eeb9a172936e3340c6edc17b731fa 100644 (file)
@@ -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;