Reset out variables.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19954 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-01-17 11:50:23 +00:00
parent b23d37808e
commit 01dec4c58f
6 changed files with 15 additions and 8 deletions

View File

@@ -39,6 +39,12 @@ gss_get_mic(OM_uint32 *minor_status,
struct _gss_context *ctx = (struct _gss_context *) context_handle;
gssapi_mech_interface m = ctx->gc_mech;
_mg_buffer_zero(message_token);
if (ctx == NULL) {
*minor_status = 0;
return GSS_S_NO_CONTEXT;
}
return (m->gm_get_mic(minor_status, ctx->gc_ctx, qop_req,
message_buffer, message_token));
}