s4/dsdb/common: clang: Fix access results in null pointer deref.
authorNoel Power <noel.power@suse.com>
Mon, 8 Jul 2019 13:43:20 +0000 (13:43 +0000)
committerGary Lockyer <gary@samba.org>
Thu, 11 Jul 2019 04:08:13 +0000 (04:08 +0000)
commitc38a7745b18ff83ad0097e604967a2501e88d1e1
tree5e06cf77109ae53721f6408e8ab95cdd12ab38b8
parentc19f1c9a3e7fc103754703dff11aa3b63b1edb95
s4/dsdb/common: clang: Fix access results in null pointer deref.

Fixes:

source4/dsdb/common/util_trusts.c:2915:21: warning: Access to field 'sid' results in a dereference of a null pointer (loaded from field 'tdo') <--[clang]
        d->di.domain_sid = d->tdo->sid;
                           ^  ~~~
1 warning generated.

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