diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-06-19 19:07:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:18:48 -0500 |
commit | 3df0bf7d6050fd7c9ace72487d4f74d92e30a584 (patch) | |
tree | 1540bde7f8175f06aedcf0a52fc64f0369833b7a /source/client/mount.cifs.c | |
parent | 09c89732869eae0d8c8971ac78235d34e4dcecb9 (diff) | |
download | samba-3df0bf7d6050fd7c9ace72487d4f74d92e30a584.tar.gz samba-3df0bf7d6050fd7c9ace72487d4f74d92e30a584.tar.xz samba-3df0bf7d6050fd7c9ace72487d4f74d92e30a584.zip |
r16360: Fix Klocwork ID 136 520 521 522 523 542 574 575 576 607
in net_rpc.c: 715 716 732 734 735 736 737 738 739 749
in net_rpc_audit.c: 754 755 756
in net_rpc_join.c: 757
in net_rpc_registry: 766 767
in net_rpc_samsync.c: 771 773
in net_sam.c: 797 798
Volker
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) { |