Make sure src_name is always set to GSS_C_NO_NAME when returning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21235 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -555,6 +555,9 @@ acceptor_start
|
|||||||
int get_mic = 0;
|
int get_mic = 0;
|
||||||
int first_ok = 0;
|
int first_ok = 0;
|
||||||
|
|
||||||
|
if (src_name)
|
||||||
|
*src_name = GSS_C_NO_NAME;
|
||||||
|
|
||||||
mech_output_token.value = NULL;
|
mech_output_token.value = NULL;
|
||||||
mech_output_token.length = 0;
|
mech_output_token.length = 0;
|
||||||
mech_buf.value = NULL;
|
mech_buf.value = NULL;
|
||||||
@@ -738,8 +741,7 @@ out:
|
|||||||
name->mech = ctx->mech_src_name;
|
name->mech = ctx->mech_src_name;
|
||||||
ctx->mech_src_name = NULL;
|
ctx->mech_src_name = NULL;
|
||||||
*src_name = (gss_name_t)name;
|
*src_name = (gss_name_t)name;
|
||||||
} else
|
}
|
||||||
*src_name = GSS_C_NO_NAME;
|
|
||||||
}
|
}
|
||||||
if (delegated_cred_handle != NULL) {
|
if (delegated_cred_handle != NULL) {
|
||||||
*delegated_cred_handle = ctx->delegated_cred_id;
|
*delegated_cred_handle = ctx->delegated_cred_id;
|
||||||
|
Reference in New Issue
Block a user