use krb5_principal_get_realm

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25113 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-04-16 08:04:59 +00:00
parent 4806ca1dbc
commit abd00160ec

View File

@@ -222,13 +222,13 @@ get_server(krb5_context context,
const char *server, const char *server,
krb5_principal *princ) krb5_principal *princ)
{ {
krb5_realm *client_realm; krb5_const_realm realm;
if(server) if(server)
return krb5_parse_name(context, server, princ); return krb5_parse_name(context, server, princ);
client_realm = krb5_princ_realm (context, client); realm = krb5_principal_get_realm(context, client);
return krb5_make_principal(context, princ, *client_realm, return krb5_make_principal(context, princ, realm,
KRB5_TGS_NAME, *client_realm, NULL); KRB5_TGS_NAME, realm, NULL);
} }
#ifndef HEIMDAL_SMALLER #ifndef HEIMDAL_SMALLER