diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-08 01:01:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2006-03-08 01:01:34 +0000 |
commit | 7322269956ede15ef35165f1deb93d5b21c393d0 (patch) | |
tree | 82afa0dd1f901dc617b45fcb20d9cdb92ea2f7e0 /source/lib | |
parent | 3057028744b1664a8767553183305298bb138436 (diff) | |
download | samba-7322269956ede15ef35165f1deb93d5b21c393d0.tar.gz samba-7322269956ede15ef35165f1deb93d5b21c393d0.tar.xz samba-7322269956ede15ef35165f1deb93d5b21c393d0.zip |
r13999: Quick fix for Coverity bug #11.
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/secace.c | 8 |
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 */ |