From dbbc06db652129986916c503b292ded70f6e8bc9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 8 Mar 2006 01:04:17 +0000 Subject: r14002: Quick fix for Coverity CID #12. Jeremy (This used to be commit 7c6e274cd578521192a0b0c4e6a4fb5dc7d722ac) --- source3/lib/secdesc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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) { -- cgit