s4/dsdb/schema: Fix Access to field results in deference of null pointer
authorNoel Power <noel.power@suse.com>
Wed, 3 Jul 2019 12:51:01 +0000 (12:51 +0000)
committerNoel Power <npower@samba.org>
Mon, 8 Jul 2019 09:30:10 +0000 (09:30 +0000)
commit109b438181563ed0074780df59a77bcdd7793e9d
treeefc486edc980597636e3eb8e8d60d76b73e89fa0
parent96e00a525876ba13250c6428c014d58464fcf5f3
s4/dsdb/schema: Fix Access to field results in deference of null pointer

Fixes:

source4/dsdb/schema/schema_info_attr.c:207:38: warning: Access to field 'revision' results in a dereference of a null pointer (loaded from variable 'schema_info') <--[clang]
        if (schema->schema_info->revision > schema_info->revision) {
                                            ^~~~~~~~~~~
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/dsdb/schema/schema_info_attr.c