Allocate the buffer from the right length.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19392 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-12-16 08:31:47 +00:00
parent 19c390a027
commit b51a41e7d1

View File

@@ -53,7 +53,7 @@ OM_uint32 _gss_ntlm_import_name
if (!gss_oid_equal(input_name_type, GSS_C_NT_HOSTBASED_SERVICE))
return GSS_S_BAD_NAMETYPE;
name = malloc(input_name_type->length + 1);
name = malloc(input_name_buffer->length + 1);
if (name == NULL) {
*minor_status = ENOMEM;
return GSS_S_FAILURE;