Reset out variables.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19950 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-01-17 10:10:08 +00:00
parent 0406f11498
commit a6f8a10e7e
3 changed files with 23 additions and 3 deletions

View File

@@ -71,6 +71,14 @@ gss_init_sec_context(OM_uint32 * minor_status,
*minor_status = 0;
_mg_buffer_zero(output_token);
if (actual_mech_type)
*actual_mech_type = GSS_C_NO_OID;
if (ret_flags)
*ret_flags = 0;
if (time_rec)
*time_rec = 0;
/*
* If we haven't allocated a context yet, do so now and lookup
* the mechanism switch table. If we have one already, make