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