s4/libcli/ldab: clang: Fix 'Access results in a deref of a null pointer'
commit8aed7e9aae13b3fc64a2af1fbdf835f12038ac9b
authorNoel Power <noel.power@suse.com>
Wed, 10 Jul 2019 15:13:38 +0000 (10 16:13 +0100)
committerGary Lockyer <gary@samba.org>
Tue, 16 Jul 2019 22:52:24 +0000 (16 22:52 +0000)
treea6e2faa07f0766a6a134b3b96585579cd8db4785
parent80f5461ae6c9e7b443b6845ca9dc341d530a04dd
s4/libcli/ldab: clang: Fix 'Access results in a deref of a null pointer'

Fixes:

source4/libcli/ldap/ldap_client.c:1023:6: warning: Access to field 'type' results in a dereference of a null pointer <--[clang]
        if ((*msg)->type != type) {
            ^~~~~~~~~~~~

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