kdc5_hammer.c (get_tgt): Remove the call to krb5_os_localaddr()
authorTheodore Tso <tytso@mit.edu>
Fri, 24 Mar 1995 22:36:48 +0000 (22:36 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 24 Mar 1995 22:36:48 +0000 (22:36 +0000)
since get_in_tkt_XXXX will default appropriately.

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

src/tests/hammer/ChangeLog
src/tests/hammer/kdc5_hammer.c

index 55b0aaefdf555e0e04312f5b25d95ab4234edb53..cf6f732d7589f3931b1ffdb45542ff9b19678c7b 100644 (file)
@@ -1,3 +1,8 @@
+Fri Mar 24 14:52:03 1995    <tytso@rsx-11.mit.edu>
+
+       * kdc5_hammer.c (get_tgt): Remove the call to krb5_os_localaddr()
+               since get_in_tkt_XXXX will default appropriately.
+
 Thu Mar  2 12:34:23 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * Makefile.in (ISODELIB): Remove reference to $(ISODELIB).
index 5ebfa11229a19df8193e619dcfbd6dacf6ca79ee..7b54509c722868a1c4c6614356a5b0b53fd9c6c1 100644 (file)
@@ -381,7 +381,6 @@ int get_tgt (context, p_client_str, p_client, ccache)
     char *cache_name = NULL;           /* -f option */
     long lifetime = KRB5_DEFAULT_LIFE; /* -l option */
     int options = KRB5_DEFAULT_OPTIONS;
-    krb5_address **my_addresses;
     krb5_error_code code;
     krb5_creds my_creds;
     krb5_timestamp start;
@@ -415,12 +414,6 @@ int get_tgt (context, p_client_str, p_client, ccache)
        return(-1);
     }
 
-    code = krb5_os_localaddr(&my_addresses);
-    if (code != 0) {
-       com_err (prog, code, "when getting my address");
-       exit(1);
-    }
-
     my_creds.client = *p_client;
     my_creds.server = tgt_server;
 
@@ -439,7 +432,7 @@ int get_tgt (context, p_client_str, p_client, ccache)
     my_creds.times.endtime = start + lifetime;
     my_creds.times.renew_till = 0;
 
-    code = krb5_get_in_tkt_with_password(context, options, my_addresses,
+    code = krb5_get_in_tkt_with_password(context, options, 0,
                                         NULL, patype, p_client_str, ccache,
                                         &my_creds, 0);
     my_creds.server = my_creds.client = 0;