Reset out variables.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19965 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-01-17 16:23:47 +00:00
parent 5b0bb46664
commit 50d94821d9
4 changed files with 18 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ _gss_copy_oid(OM_uint32 *minor_status,
*minor_status = 0;
to_oid->elements = malloc(len);
if (!to_oid->elements) {
to_oid->length = 0;
*minor_status = ENOMEM;
return GSS_S_FAILURE;
}
@@ -68,6 +69,7 @@ _gss_copy_buffer(OM_uint32 *minor_status,
to_buf->value = malloc(len);
if (!to_buf->value) {
*minor_status = ENOMEM;
to_buf->length = 0;
return GSS_S_FAILURE;
}
to_buf->length = len;