From: Theodore Tso Date: Fri, 24 Mar 1995 22:36:48 +0000 (+0000) Subject: kdc5_hammer.c (get_tgt): Remove the call to krb5_os_localaddr() X-Git-Tag: krb5-1.0-beta5~474 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cce1b33b1a5ac377a70128184d10c75105eefe48;p=krb5.git kdc5_hammer.c (get_tgt): Remove the call to krb5_os_localaddr() since get_in_tkt_XXXX will default appropriately. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5236 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/hammer/ChangeLog b/src/tests/hammer/ChangeLog index 55b0aaefd..cf6f732d7 100644 --- a/src/tests/hammer/ChangeLog +++ b/src/tests/hammer/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 24 14:52:03 1995 + + * 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 * Makefile.in (ISODELIB): Remove reference to $(ISODELIB). diff --git a/src/tests/hammer/kdc5_hammer.c b/src/tests/hammer/kdc5_hammer.c index 5ebfa1122..7b54509c7 100644 --- a/src/tests/hammer/kdc5_hammer.c +++ b/src/tests/hammer/kdc5_hammer.c @@ -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;