summaryrefslogtreecommitdiffstats
path: root/source/lib/secace.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-08 01:01:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:04 -0500
commitb9de6c926953b3321fa3850d501c807c6eabf230 (patch)
tree82afa0dd1f901dc617b45fcb20d9cdb92ea2f7e0 /source/lib/secace.c
parent75c95d149a22eba4a5afedcec7ba5e2a28cccf01 (diff)
downloadsamba-b9de6c926953b3321fa3850d501c807c6eabf230.tar.gz
samba-b9de6c926953b3321fa3850d501c807c6eabf230.tar.xz
samba-b9de6c926953b3321fa3850d501c807c6eabf230.zip
r13999: Quick fix for Coverity bug #11.
Jeremy.
Diffstat (limited to 'source/lib/secace.c')
-rw-r--r--source/lib/secace.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/lib/secace.c b/source/lib/secace.c
index b2cf81d0fd0..f1d4d99cc16 100644
--- a/source/lib/secace.c
+++ b/source/lib/secace.c
@@ -149,7 +149,13 @@ BOOL sec_ace_equal(SEC_ACE *s1, SEC_ACE *s2)
{
/* Trivial case */
- if (!s1 && !s2) return True;
+ if (!s1 && !s2) {
+ return True;
+ }
+
+ if (!s1 || !s2) {
+ return False;
+ }
/* Check top level stuff */