From: Volker Lendecke Date: Tue, 11 Aug 2020 07:51:39 +0000 (+0200) Subject: libsmb: Fix CID 1465860 Control flow issues (DEADCODE) X-Git-Tag: talloc-2.3.2~875 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aa6b0cd2e1936dd8ca68bbeec233fd42b89b98f;p=thirdparty%2Fsamba.git libsmb: Fix CID 1465860 Control flow issues (DEADCODE) Signed-off-by: Volker Lendecke Reviewed-by: Noel Power Autobuild-User(master): Noel Power Autobuild-Date(master): Tue Aug 11 18:00:26 UTC 2020 on sn-devel-184 --- diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 5551c899df6..f85a2523740 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -2393,7 +2393,7 @@ NTSTATUS dns_lookup_list_async(TALLOC_CTX *ctx, state->queries = talloc_zero_array(state, struct dns_query_state, queries_size); - if (state == NULL) { + if (state->queries == NULL) { goto fail; }