diff options
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 3 | ||||
-rw-r--r-- | source4/librpc/rpc/dcerpc_smb.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 438a9a4cf3..0e8828acbd 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -660,8 +660,7 @@ NTSTATUS dcerpc_request(struct dcerpc_pipe *p, length = pkt.u.response.stub_and_verifier.length; - payload.data = talloc_realloc(mem_ctx, - payload.data, + payload.data = talloc_realloc(payload.data, payload.length + length); if (!payload.data) { return NT_STATUS_NO_MEMORY; diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c index 51722c8a04..d3a0a42d10 100644 --- a/source4/librpc/rpc/dcerpc_smb.c +++ b/source4/librpc/rpc/dcerpc_smb.c @@ -98,7 +98,7 @@ static NTSTATUS dcerpc_raw_recv(struct dcerpc_pipe *p, } /* make sure the payload can hold the whole fragment */ - payload.data = talloc_realloc(mem_ctx, payload.data, frag_length); + payload.data = talloc_realloc(payload.data, frag_length); if (!payload.data) { return NT_STATUS_NO_MEMORY; } @@ -203,7 +203,7 @@ static NTSTATUS smb_secondary_request(struct dcerpc_pipe *p, return status; } - blob->data = talloc_realloc(mem_ctx, blob->data, frag_length); + blob->data = talloc_realloc(blob->data, frag_length); if (!blob->data) { return NT_STATUS_NO_MEMORY; } |