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:
parent
b5608d52d3
commit
1fdccf8dc7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user