From: Günther Deschner Date: Fri, 22 Jun 2007 14:43:42 +0000 (+0000) Subject: r23586: Fix heimdal path in the krb5 renew routine when we need to compose the tgt X-Git-Tag: samba-4.0.0alpha6~801^2~5558 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33c7b666adfa5c873ffd1461edca37b068dfddac;p=thirdparty%2Fsamba.git r23586: Fix heimdal path in the krb5 renew routine when we need to compose the tgt string ourselves. Guenther (This used to be commit 1e4a7af99303fb17ebca499ff7e0a017a2017754) --- diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c index 078706d1dba..0180bef47ae 100644 --- a/source3/libsmb/clikrb5.c +++ b/source3/libsmb/clikrb5.c @@ -1223,7 +1223,11 @@ out: } } else { /* build tgt service by default */ - client_realm = krb5_princ_realm(context, client); + client_realm = krb5_princ_realm(context, creds_in.client); + if (!client_realm) { + ret = ENOMEM; + goto done; + } ret = krb5_make_principal(context, &creds_in.server, *client_realm, KRB5_TGS_NAME, *client_realm, NULL); if (ret) { goto done;