check that ctx is not a null ptr before deref cid#132
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24112 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -39,7 +39,7 @@ gss_wrap(OM_uint32 *minor_status,
|
||||
gss_buffer_t output_message_buffer)
|
||||
{
|
||||
struct _gss_context *ctx = (struct _gss_context *) context_handle;
|
||||
gssapi_mech_interface m = ctx->gc_mech;
|
||||
gssapi_mech_interface m;
|
||||
|
||||
if (conf_state)
|
||||
*conf_state = 0;
|
||||
@@ -49,6 +49,8 @@ gss_wrap(OM_uint32 *minor_status,
|
||||
return GSS_S_NO_CONTEXT;
|
||||
}
|
||||
|
||||
m = ctx->gc_mech;
|
||||
|
||||
return (m->gm_wrap(minor_status, ctx->gc_ctx,
|
||||
conf_req_flag, qop_req, input_message_buffer,
|
||||
conf_state, output_message_buffer));
|
||||
|
Reference in New Issue
Block a user