Reset out variables.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19965 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user