check that ctx is not a null ptr before deref cid#133
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24111 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -38,7 +38,7 @@ gss_wrap_size_limit(OM_uint32 *minor_status,
|
||||
OM_uint32 *max_input_size)
|
||||
{
|
||||
struct _gss_context *ctx = (struct _gss_context *) context_handle;
|
||||
gssapi_mech_interface m = ctx->gc_mech;
|
||||
gssapi_mech_interface m;
|
||||
|
||||
*max_input_size = 0;
|
||||
if (ctx == NULL) {
|
||||
@@ -46,6 +46,8 @@ gss_wrap_size_limit(OM_uint32 *minor_status,
|
||||
return GSS_S_NO_CONTEXT;
|
||||
}
|
||||
|
||||
m = ctx->gc_mech;
|
||||
|
||||
return (m->gm_wrap_size_limit(minor_status, ctx->gc_ctx,
|
||||
conf_req_flag, qop_req, req_output_size, max_input_size));
|
||||
}
|
||||
|
Reference in New Issue
Block a user