summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib/gssapi/accept_sec_context.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-06-14 23:46:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:07 -0500
commitb3076a39b9d92ed3600eceb82f129e8c0f36a6bd (patch)
tree331d39b19ca287b11967b1017b37354f5e61b8cf /source4/heimdal/lib/gssapi/accept_sec_context.c
parentd4c5627073865b2c36b8e283b2cdc866c7514086 (diff)
downloadsamba-b3076a39b9d92ed3600eceb82f129e8c0f36a6bd.tar.gz
samba-b3076a39b9d92ed3600eceb82f129e8c0f36a6bd.tar.bz2
samba-b3076a39b9d92ed3600eceb82f129e8c0f36a6bd.zip
r16235: Don't update minor_status when cleaning up on error. This restores
sensible log messages to gensec_gssapi. Andrew Bartlett (This used to be commit df2e4f061f3bc82930dfcdbb75b775939ae8832e)
Diffstat (limited to 'source4/heimdal/lib/gssapi/accept_sec_context.c')
-rw-r--r--source4/heimdal/lib/gssapi/accept_sec_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/heimdal/lib/gssapi/accept_sec_context.c b/source4/heimdal/lib/gssapi/accept_sec_context.c
index 2dcb943aed..41a54bdab1 100644
--- a/source4/heimdal/lib/gssapi/accept_sec_context.c
+++ b/source4/heimdal/lib/gssapi/accept_sec_context.c
@@ -700,7 +700,7 @@ gsskrb5_accept_sec_context
OM_uint32 ret = GSS_S_COMPLETE;
krb5_data fwd_data;
gss_ctx_id_t local_context;
-
+ OM_uint32 minor_status2;
GSSAPI_KRB5_INIT();
krb5_data_zero (&fwd_data);
@@ -772,7 +772,7 @@ gsskrb5_accept_sec_context
if (ret == GSS_S_COMPLETE || ret == GSS_S_CONTINUE_NEEDED) {
*context_handle = local_context;
} else {
- gss_delete_sec_context(minor_status,
+ gss_delete_sec_context(&minor_status2,
&local_context,
NULL);
}