Reset out variables using propper macros.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19949 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -161,13 +161,18 @@ OM_uint32 gss_accept_sec_context(OM_uint32 *minor_status,
|
|||||||
int allocated_ctx;
|
int allocated_ctx;
|
||||||
|
|
||||||
*minor_status = 0;
|
*minor_status = 0;
|
||||||
if (src_name) *src_name = 0;
|
if (src_name)
|
||||||
if (mech_type) *mech_type = 0;
|
*src_name = GSS_C_NO_NAME;
|
||||||
if (ret_flags) *ret_flags = 0;
|
if (mech_type)
|
||||||
if (time_rec) *time_rec = 0;
|
*mech_type = GSS_C_NO_OID;
|
||||||
if (delegated_cred_handle) *delegated_cred_handle = 0;
|
if (ret_flags)
|
||||||
output_token->length = 0;
|
*ret_flags = 0;
|
||||||
output_token->value = 0;
|
if (time_rec)
|
||||||
|
*time_rec = 0;
|
||||||
|
if (delegated_cred_handle)
|
||||||
|
*delegated_cred_handle = GSS_C_NO_CREDENTIAL;
|
||||||
|
_mg_buffer_zero(output_token);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If this is the first call (*context_handle is NULL), we must
|
* If this is the first call (*context_handle is NULL), we must
|
||||||
|
Reference in New Issue
Block a user