From: Theodore Tso Date: Thu, 26 Sep 1996 23:12:25 +0000 (+0000) Subject: Remove call to krb5_os_localaddr(), since get_in_tkt will default X-Git-Tag: krb5-1.0-freeze1~295 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=532afc64c6912278edd3fa58c8a607c774b0bf0f;p=krb5.git Remove call to krb5_os_localaddr(), since get_in_tkt will default correctly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9127 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index d4bbbd4f0..7ed995d38 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 18 15:54:41 1996 Theodore Y. Ts'o + + * krb_auth_su.c (krb5_get_tkt_via_passwd): Remove call to + krb5_os_localaddr(), since get_in_tkt will default correctly. + Tue Sep 10 14:15:02 1996 Tom Yu * ksu.M: remove ".so man1/header.doc" diff --git a/src/clients/ksu/krb_auth_su.c b/src/clients/ksu/krb_auth_su.c index de7d05500..01cd77110 100644 --- a/src/clients/ksu/krb_auth_su.c +++ b/src/clients/ksu/krb_auth_su.c @@ -392,7 +392,6 @@ krb5_boolean krb5_get_tkt_via_passwd (context, ccache, client, server, opt_info *options; krb5_boolean *zero_password; { - krb5_address **my_addresses; krb5_error_code code; krb5_creds my_creds; krb5_timestamp now; @@ -419,13 +418,6 @@ krb5_boolean krb5_get_tkt_via_passwd (context, ccache, client, server, return (FALSE); } - code = krb5_os_localaddr(context, &my_addresses); - - if (code != 0) { - com_err (prog_name, code, "when getting my address"); - return (FALSE); - } - if ((code = krb5_timeofday(context, &now))) { com_err(prog_name, code, "while getting time of day"); return (FALSE); @@ -450,7 +442,6 @@ krb5_boolean krb5_get_tkt_via_passwd (context, ccache, client, server, com_err(prog_name, code, "while reading password for '%s'\n", client_name); memset(password, 0, sizeof(password)); - krb5_free_addresses(context, my_addresses); return (FALSE); } @@ -458,18 +449,15 @@ krb5_boolean krb5_get_tkt_via_passwd (context, ccache, client, server, fprintf(stderr, "No password given\n"); *zero_password = TRUE; memset(password, 0, sizeof(password)); - krb5_free_addresses(context, my_addresses); return (FALSE); } code = krb5_get_in_tkt_with_password(context, options->opt, - my_addresses, NULL, preauth_ptr, + 0, NULL, preauth_ptr, password, *ccache, &my_creds, 0); memset(password, 0, sizeof(password)); - krb5_free_addresses(context, my_addresses); - if (code) { if (code == KRB5KRB_AP_ERR_BAD_INTEGRITY) fprintf (stderr, "%s: Password incorrect\n", prog_name);