From: kouril Date: Fri, 19 Dec 2003 15:27:40 +0000 (+0000) Subject: let GSS error code propagate properly to the caller X-Git-Tag: v5.0-rc4~13 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=e49368158d3f7a8107449c10c0094460b365addb;p=mod_auth_kerb.cvs%2F.git let GSS error code propagate properly to the caller --- diff --git a/spnegokrb5/accept_sec_context.c b/spnegokrb5/accept_sec_context.c index 170f55a..517186f 100644 --- a/spnegokrb5/accept_sec_context.c +++ b/spnegokrb5/accept_sec_context.c @@ -178,9 +178,9 @@ OM_uint32 gss_accept_sec_context_spnego { NegTokenInit init_token; OM_uint32 major_status; + OM_uint32 minor_status2; gss_buffer_desc ibuf, obuf; gss_buffer_t ot = NULL; - OM_uint32 minor; unsigned char *buf; size_t buf_size; size_t len, taglen, ni_len; @@ -232,7 +232,7 @@ OM_uint32 gss_accept_sec_context_spnego ibuf.length = init_token.mechToken->length; ibuf.value = init_token.mechToken->data; - major_status = gss_accept_sec_context(&minor, + major_status = gss_accept_sec_context(minor_status, context_handle, acceptor_cred_handle, &ibuf, @@ -252,7 +252,7 @@ OM_uint32 gss_accept_sec_context_spnego ret = send_accept (minor_status, output_token, ot); if (ot != NULL) - gss_release_buffer(&minor, ot); + gss_release_buffer(&minor_status2, ot); return ret; }