svn commit: samba r21471 - in branches/SAMBA_3_0_25/source/smbd: .
jra at samba.org
jra at samba.org
Tue Feb 20 17:20:10 GMT 2007
Author: jra
Date: 2007-02-20 17:20:08 +0000 (Tue, 20 Feb 2007)
New Revision: 21471
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21471
Log:
Merge from Volker.
Not strictly necessary, as data_blob() panics if it can't allocate. But I'd
see this as a design flaw in data_blob() and it made me look in that routine.
Jeremy.
Modified:
branches/SAMBA_3_0_25/source/smbd/sesssetup.c
Changeset:
Modified: branches/SAMBA_3_0_25/source/smbd/sesssetup.c
===================================================================
--- branches/SAMBA_3_0_25/source/smbd/sesssetup.c 2007-02-20 16:22:50 UTC (rev 21470)
+++ branches/SAMBA_3_0_25/source/smbd/sesssetup.c 2007-02-20 17:20:08 UTC (rev 21471)
@@ -828,6 +828,10 @@
}
pad->needed_len = needed_len - pblob->length;
pad->partial_data = data_blob(pblob->data, pblob->length);
+ if (pad->partial_data.data == NULL) {
+ SAFE_FREE(pad);
+ return NT_STATUS_NO_MEMORY;
+ }
pad->smbpid = smbpid;
pad->vuid = vuid;
DLIST_ADD(pd_list, pad);
More information about the samba-cvs
mailing list