svn commit: samba r16401 - in
branches/SAMBA_4_0/source/smb_server/smb: .
metze at samba.org
metze at samba.org
Tue Jun 20 06:05:13 GMT 2006
Author: metze
Date: 2006-06-20 06:05:10 +0000 (Tue, 20 Jun 2006)
New Revision: 16401
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16401
Log:
keep the old pointer when realloc fails, this is needed for the
search callback
metze
Modified:
branches/SAMBA_4_0/source/smb_server/smb/trans2.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb/trans2.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb/trans2.c 2006-06-20 05:06:10 UTC (rev 16400)
+++ branches/SAMBA_4_0/source/smb_server/smb/trans2.c 2006-06-20 06:05:10 UTC (rev 16401)
@@ -67,8 +67,10 @@
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;
More information about the samba-cvs
mailing list