s3/libads: clang: Fix Array access results in a null pointer dereference
authorNoel Power <noel.power@suse.com>
Thu, 8 Aug 2019 13:12:39 +0000 (13:12 +0000)
committerNoel Power <npower@samba.org>
Wed, 25 Sep 2019 09:47:32 +0000 (09:47 +0000)
commit40ddcf7bdcec547acdba090f43651cc5b953aded
tree1470228399757804dc6dd5e6fe6f928248b0041d
parentd3371d8545bb4303e866e991453a0bbb05dd7656
s3/libads: clang: Fix Array access results in a null pointer dereference

Fixes:

source3/libads/cldap.c:400:6: warning: Array access (from variable 'responses') results in a null pointer dereference <--[clang]
        if (responses[0] == NULL) {
            ^
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libads/cldap.c