summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-06-22 14:43:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:33 -0500
commit33c7b666adfa5c873ffd1461edca37b068dfddac (patch)
tree22e4c3991c093fe1b47bd59c022f24774e8a469e /source3
parentcc4f37f92820a5092d17e7b2e2b349644a0820d5 (diff)
downloadsamba-33c7b666adfa5c873ffd1461edca37b068dfddac.tar.gz
samba-33c7b666adfa5c873ffd1461edca37b068dfddac.tar.bz2
samba-33c7b666adfa5c873ffd1461edca37b068dfddac.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clikrb5.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index 078706d1db..0180bef47a 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;