(krb5_get_kdc_cred): copy the principals from in_creds -> out_creds.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2790 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-08 03:51:59 +00:00
parent b0647ce691
commit a31682ba0b

View File

@@ -165,6 +165,19 @@ krb5_get_kdc_cred(krb5_context context,
memset(&rep, 0, sizeof(rep));
if(decode_TGS_REP(resp.data, resp.length, &rep.part1, &len) == 0){
/*
* Not sure what should be done with out_creds->client and server
*/
krb5_copy_principal (context,
in_creds->client,
&(*out_creds)->client);
krb5_copy_principal (context,
in_creds->server,
&(*out_creds)->server);
ret = extract_ticket(context, &rep, *out_creds,
&krbtgt->session,
NULL,