git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cdaac0
)
s3: Fix Coverity ID 2328: FORWARD_NULL
author
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 09:06:02 +0000
(11:06 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 09:25:34 +0000
(11:25 +0200)
Make startsmbfilepwent robust against an invalid open type
source3/passdb/pdb_smbpasswd.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_smbpasswd.c
b/source3/passdb/pdb_smbpasswd.c
index 8d6ac318cb751ee3344166e921d2c42434d000c3..005c23d34ed41d8c19ad10b878e6845781d057d7 100644
(file)
--- a/
source3/passdb/pdb_smbpasswd.c
+++ b/
source3/passdb/pdb_smbpasswd.c
@@
-225,6
+225,9
@@
creating file %s\n", pfile));
lock_type = F_WRLCK;
break;
}
+ default:
+ DEBUG(10, ("Invalid open mode: %d\n", type));
+ return NULL;
}
for(race_loop = 0; race_loop < 5; race_loop++) {