]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Fix CID 1465860 Control flow issues (DEADCODE)
authorVolker Lendecke <vl@samba.org>
Tue, 11 Aug 2020 07:51:39 +0000 (09:51 +0200)
committerNoel Power <npower@samba.org>
Tue, 11 Aug 2020 18:00:26 +0000 (18:00 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Tue Aug 11 18:00:26 UTC 2020 on sn-devel-184

source3/libsmb/namequery.c

index 5551c899df6cc5dfed28f558e70ddbb88aed0672..f85a2523740e2df2978861cfb0562f8280e8db8e 100644 (file)
@@ -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;
        }