diff options
author | Gerald Carter <jerry@samba.org> | 2006-06-20 16:59:48 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2006-06-20 16:59:48 +0000 |
commit | 71402ccf50c38ff092e7331c6817bbf975fde412 (patch) | |
tree | 49ed8a84c63734b906f1b792225f12fc1dc1d659 /source/client/mount.cifs.c | |
parent | aa39f8aeab4ff08fd083cf913576f24104b08fde (diff) | |
download | samba-71402ccf50c38ff092e7331c6817bbf975fde412.tar.gz samba-71402ccf50c38ff092e7331c6817bbf975fde412.tar.xz samba-71402ccf50c38ff092e7331c6817bbf975fde412.zip |
r16418: Pull in more Klocwork fixes (up to r16415)
Diffstat (limited to 'source/client/mount.cifs.c')
-rwxr-xr-x | source/client/mount.cifs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c index 23a74d34fad..ac98b992bb2 100755 --- a/source/client/mount.cifs.c +++ b/source/client/mount.cifs.c @@ -259,6 +259,11 @@ static int get_password_from_file(int file_descript, char * filename) else memset(mountpassword, 0, 64); + if (mountpassword == NULL) { + printf("malloc failed\n"); + exit(1); + } + if(filename != NULL) { file_descript = open(filename, O_RDONLY); if(file_descript < 0) { |