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>
"failed: %s\n", nt_errstr(status)));
return false;
}
- if (responses[0] == NULL) {
+ if (responses == NULL || responses[0] == NULL) {
DEBUG(2, ("ads_cldap_netlogon: did not get a reply\n"));
TALLOC_FREE(responses);
return false;