init content before use coverity #148
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24093 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -152,13 +152,13 @@ _gsskrb5_wrap_size_limit (
|
|||||||
krb5_keytype keytype;
|
krb5_keytype keytype;
|
||||||
const gsskrb5_ctx ctx = (const gsskrb5_ctx) context_handle;
|
const gsskrb5_ctx ctx = (const gsskrb5_ctx) context_handle;
|
||||||
|
|
||||||
|
GSSAPI_KRB5_INIT (&context);
|
||||||
|
|
||||||
if (ctx->more_flags & IS_CFX)
|
if (ctx->more_flags & IS_CFX)
|
||||||
return _gssapi_wrap_size_cfx(minor_status, ctx, context,
|
return _gssapi_wrap_size_cfx(minor_status, ctx, context,
|
||||||
conf_req_flag, qop_req,
|
conf_req_flag, qop_req,
|
||||||
req_output_size, max_input_size);
|
req_output_size, max_input_size);
|
||||||
|
|
||||||
GSSAPI_KRB5_INIT (&context);
|
|
||||||
|
|
||||||
HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex);
|
HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex);
|
||||||
ret = _gsskrb5i_get_token_key(ctx, context, &key);
|
ret = _gsskrb5i_get_token_key(ctx, context, &key);
|
||||||
HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex);
|
HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex);
|
||||||
|
Reference in New Issue
Block a user