From 1eea156f571e498a33dd8ad528f3fb94433a8311 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 8 Mar 2006 01:01:34 +0000 Subject: r13999: Quick fix for Coverity bug #11. Jeremy. (This used to be commit b9de6c926953b3321fa3850d501c807c6eabf230) --- source3/lib/secace.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/lib') 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 */ -- cgit