svn commit: samba r16317 - in branches/SAMBA_3_0/source/smbd: .
jra at samba.org
jra at samba.org
Fri Jun 16 23:04:14 GMT 2006
Author: jra
Date: 2006-06-16 23:04:13 +0000 (Fri, 16 Jun 2006)
New Revision: 16317
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16317
Log:
Klocwork #300. Check for error return on malloc.
Jeremy.
Modified:
branches/SAMBA_3_0/source/smbd/conn.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/conn.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/conn.c 2006-06-16 22:59:40 UTC (rev 16316)
+++ branches/SAMBA_3_0/source/smbd/conn.c 2006-06-16 23:04:13 UTC (rev 16317)
@@ -117,6 +117,10 @@
oldsz, newsz));
nbmap = bitmap_allocate(newsz);
+ if (!nbmap) {
+ DEBUG(0,("ERROR! malloc fail.\n"));
+ return NULL;
+ }
bitmap_copy(nbmap, bmap);
bitmap_free(bmap);
More information about the samba-cvs
mailing list