diff options
author | Volker Lendecke <vl@samba.org> | 2012-04-19 11:36:11 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-19 17:37:39 +0200 |
commit | 0b1f3aea27280de0436f465346264c2623ba2d3e (patch) | |
tree | 8ce70bfd02a0897f420e2334c6fe687f2925b756 /source3 | |
parent | 15c60456994b57b94da21c5be57d9b798242b42c (diff) | |
download | samba-0b1f3aea27280de0436f465346264c2623ba2d3e.tar.gz samba-0b1f3aea27280de0436f465346264c2623ba2d3e.tar.bz2 samba-0b1f3aea27280de0436f465346264c2623ba2d3e.zip |
s3: Fix Coverity ID 2682: NULL_RETURNS
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_scannedonly.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c index baf7fbefa9..b43c6df972 100644 --- a/source3/modules/vfs_scannedonly.c +++ b/source3/modules/vfs_scannedonly.c @@ -945,6 +945,10 @@ static int scannedonly_connect(struct vfs_handle_struct *handle, struct Tscannedonly *so; so = SMB_MALLOC_P(struct Tscannedonly); + if (so == NULL) { + errno = ENOMEM; + return -1; + } handle->data = (void *)so; handle->free_data = free_scannedonly_data; so->gsendbuffer[0]='\0'; |