summaryrefslogtreecommitdiff
path: root/source3/lib/secdesc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-08 01:04:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:04 -0500
commitdbbc06db652129986916c503b292ded70f6e8bc9 (patch)
tree88389624b27342485a9ee5b03aab5adff05ab5b0 /source3/lib/secdesc.c
parent1eea156f571e498a33dd8ad528f3fb94433a8311 (diff)
downloadsamba-dbbc06db652129986916c503b292ded70f6e8bc9.tar.gz
samba-dbbc06db652129986916c503b292ded70f6e8bc9.tar.bz2
samba-dbbc06db652129986916c503b292ded70f6e8bc9.zip
r14002: Quick fix for Coverity CID #12.
Jeremy (This used to be commit 7c6e274cd578521192a0b0c4e6a4fb5dc7d722ac)
Diffstat (limited to 'source3/lib/secdesc.c')
-rw-r--r--source3/lib/secdesc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/secdesc.c b/source3/lib/secdesc.c
index 273bf0f0a3..a443f90dbb 100644
--- a/source3/lib/secdesc.c
+++ b/source3/lib/secdesc.c
@@ -73,6 +73,10 @@ BOOL sec_desc_equal(SEC_DESC *s1, SEC_DESC *s2)
goto done;
}
+ if (!s1 || !s2) {
+ return False;
+ }
+
/* Check top level stuff */
if (s1->revision != s2->revision) {