From 6d5973540d43cff910d824bbf481a4ee52ed694a Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 12 Feb 2000 21:24:08 +0000 Subject: [PATCH] (gss_accept_sec_context): set target in context_handle git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7920 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/gssapi/accept_sec_context.c | 8 ++++++++ lib/gssapi/krb5/accept_sec_context.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/lib/gssapi/accept_sec_context.c b/lib/gssapi/accept_sec_context.c index ad23bce2c..8cae517b1 100644 --- a/lib/gssapi/accept_sec_context.c +++ b/lib/gssapi/accept_sec_context.c @@ -152,6 +152,14 @@ gss_accept_sec_context goto failure; } + kret = krb5_copy_principal (gssapi_krb5_context, + ticket->server, + &(*context_handle)->target); + if (kret) { + ret = GSS_S_FAILURE; + goto failure; + } + if (src_name) { kret = krb5_copy_principal (gssapi_krb5_context, ticket->client, diff --git a/lib/gssapi/krb5/accept_sec_context.c b/lib/gssapi/krb5/accept_sec_context.c index ad23bce2c..8cae517b1 100644 --- a/lib/gssapi/krb5/accept_sec_context.c +++ b/lib/gssapi/krb5/accept_sec_context.c @@ -152,6 +152,14 @@ gss_accept_sec_context goto failure; } + kret = krb5_copy_principal (gssapi_krb5_context, + ticket->server, + &(*context_handle)->target); + if (kret) { + ret = GSS_S_FAILURE; + goto failure; + } + if (src_name) { kret = krb5_copy_principal (gssapi_krb5_context, ticket->client,