summaryrefslogtreecommitdiff
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
commit1eea156f571e498a33dd8ad528f3fb94433a8311 (patch)
treed33bf0e21f9debef22545be733d8d88349a8c288
parentef5b36ca8ddd435a479cad539759c765a6cf415e (diff)
downloadsamba-1eea156f571e498a33dd8ad528f3fb94433a8311.tar.gz
samba-1eea156f571e498a33dd8ad528f3fb94433a8311.tar.bz2
samba-1eea156f571e498a33dd8ad528f3fb94433a8311.zip
r13999: Quick fix for Coverity bug #11.
Jeremy. (This used to be commit b9de6c926953b3321fa3850d501c807c6eabf230)
-rw-r--r--source3/lib/secace.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/lib/secace.c b/source3/lib/secace.c
index b2cf81d0fd..f1d4d99cc1 100644
--- a/source3/lib/secace.c
+++ b/source3/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 */