diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/smb_server/smb/trans2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/smb_server/smb/trans2.c b/source4/smb_server/smb/trans2.c index 16a2e14f30..dd97f73698 100644 --- a/source4/smb_server/smb/trans2.c +++ b/source4/smb_server/smb/trans2.c @@ -67,8 +67,10 @@ static NTSTATUS trans2_grow_data(TALLOC_CTX *mem_ctx, uint32_t new_size) { if (new_size > blob->length) { - blob->data = talloc_realloc(mem_ctx, blob->data, uint8_t, new_size); - NT_STATUS_HAVE_NO_MEMORY(blob->data); + uint8_t *p; + p = talloc_realloc(mem_ctx, blob->data, uint8_t, new_size); + NT_STATUS_HAVE_NO_MEMORY(p); + blob->data = p; } blob->length = new_size; return NT_STATUS_OK; |