Reset out variables.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19953 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -148,9 +148,13 @@ gss_display_status(OM_uint32 *minor_status,
|
|||||||
{
|
{
|
||||||
OM_uint32 major_status;
|
OM_uint32 major_status;
|
||||||
|
|
||||||
|
_mg_buffer_zero(status_string);
|
||||||
|
*message_content = 0;
|
||||||
|
|
||||||
major_status = _gss_mg_get_error(mech_type, status_type,
|
major_status = _gss_mg_get_error(mech_type, status_type,
|
||||||
status_value, status_string);
|
status_value, status_string);
|
||||||
if (major_status == GSS_S_COMPLETE) {
|
if (major_status == GSS_S_COMPLETE) {
|
||||||
|
|
||||||
*message_content = 0;
|
*message_content = 0;
|
||||||
*minor_status = 0;
|
*minor_status = 0;
|
||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
@@ -203,7 +207,6 @@ gss_display_status(OM_uint32 *minor_status,
|
|||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
status_string->value = NULL;
|
_mg_buffer_zero(status_string);
|
||||||
status_string->length = 0;
|
|
||||||
return (GSS_S_BAD_STATUS);
|
return (GSS_S_BAD_STATUS);
|
||||||
}
|
}
|
||||||
|
@@ -39,6 +39,7 @@ OM_uint32 gss_duplicate_name(OM_uint32 *minor_status,
|
|||||||
struct _gss_mechanism_name *mn;
|
struct _gss_mechanism_name *mn;
|
||||||
|
|
||||||
*minor_status = 0;
|
*minor_status = 0;
|
||||||
|
*dest_name = GSS_C_NO_NAME;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If this name has a value (i.e. it didn't come from
|
* If this name has a value (i.e. it didn't come from
|
||||||
|
Reference in New Issue
Block a user