summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-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 */