1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r2050: fixed a case where code assumed you could Realloc the result of a data_blob()

This commit is contained in:
Andrew Tridgell 2004-08-25 06:42:08 +00:00 committed by Gerald (Jerry) Carter
parent b5608d52d3
commit 1fdccf8dc7

View File

@ -856,8 +856,8 @@ NTSTATUS dcesrv_input(struct dcesrv_connection *dce_conn, const DATA_BLOB *data)
{
NTSTATUS status;
dce_conn->partial_input.data = Realloc(dce_conn->partial_input.data,
dce_conn->partial_input.length + data->length);
dce_conn->partial_input.data = talloc_realloc(dce_conn->partial_input.data,
dce_conn->partial_input.length + data->length);
if (!dce_conn->partial_input.data) {
return NT_STATUS_NO_MEMORY;
}