summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-16 23:04:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:33 -0500
commit52d6b8339a76c78176aaadf8dc7ba12a8bfd9c38 (patch)
treeb059fb7746e093721908659638afafa46368b42e /source3
parent44333763612a79d64f109f94b47c5c26bd01e625 (diff)
downloadsamba-52d6b8339a76c78176aaadf8dc7ba12a8bfd9c38.tar.gz
samba-52d6b8339a76c78176aaadf8dc7ba12a8bfd9c38.tar.bz2
samba-52d6b8339a76c78176aaadf8dc7ba12a8bfd9c38.zip
r16317: Klocwork #300. Check for error return on malloc.
Jeremy. (This used to be commit aa0d739834a286aeee88f76048dc347dd2852d09)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/conn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c
index 5aa8901d59..d857611c35 100644
--- a/source3/smbd/conn.c
+++ b/source3/smbd/conn.c
@@ -117,6 +117,10 @@ find_again:
oldsz, newsz));
nbmap = bitmap_allocate(newsz);
+ if (!nbmap) {
+ DEBUG(0,("ERROR! malloc fail.\n"));
+ return NULL;
+ }
bitmap_copy(nbmap, bmap);
bitmap_free(bmap);