Author: jra Date: 2006-06-16 23:04:16 +0000 (Fri, 16 Jun 2006) New Revision: 16318
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16318 Log: Klocwork #300. Check for error return on malloc. Jeremy. Modified: trunk/source/smbd/conn.c Changeset: Modified: trunk/source/smbd/conn.c =================================================================== --- trunk/source/smbd/conn.c 2006-06-16 23:04:13 UTC (rev 16317) +++ trunk/source/smbd/conn.c 2006-06-16 23:04:16 UTC (rev 16318) @@ -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);