(afslog_uid_int): handle krb_get_tf_fullname that cannot take NULLs

(such as the MIT one)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10772 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-10-24 19:36:27 +00:00
parent a02cd32c3b
commit 116853e39a

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995 - 2000 Kungliga Tekniska H<>gskolan
* Copyright (c) 1995 - 2001 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -63,13 +63,15 @@ afslog_uid_int(kafs_data *data,
{
int ret;
CREDENTIALS c;
char name[ANAME_SZ];
char inst[INST_SZ];
char realm[REALM_SZ];
if (cell == 0 || cell[0] == 0)
return _kafs_afslog_all_local_cells (data, uid, homedir);
/* Extract realm from ticket file. */
ret = krb_get_tf_fullname(tkt_string(), NULL, NULL, realm);
ret = krb_get_tf_fullname(tkt_string(), name, inst, realm);
if (ret != KSUCCESS)
return ret;