From 2f38977b9722b7bf7239cfa2001c02449bd3dcb1 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 7 Aug 1997 23:31:25 +0000 Subject: [PATCH] small fixes git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2766 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/init_creds_pw.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index d2bb1571b..f542c7de9 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -278,11 +278,12 @@ krb5_get_init_creds_password(krb5_context context, krb5_enctype *etypes = NULL; krb5_preauthtype *pre_auth_types = NULL; krb5_creds this_cred; - /* krb5_kdc_rep kdc_reply; */ + krb5_kdc_rep kdc_reply; char buf[BUFSIZ]; krb5_data password_data; - ret = get_init_creds_common(context, creds, client, start_time, in_tkt_service, options, + ret = get_init_creds_common(context, creds, client, start_time, + in_tkt_service, options, &addrs, &etypes, &this_cred, &pre_auth_types); if(ret) goto out; @@ -322,7 +323,11 @@ krb5_get_init_creds_password(krb5_context context, if (ret) goto out; if (prompter) - print_expire (context, client_realm, &kdc_reply, prompter, data); + print_expire (context, + krb5_princ_realm (context, creds->client), + &kdc_reply, + prompter, + data); krb5_free_kdc_rep (context, &kdc_reply); free (pre_auth_types);