]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: Fix NULL dereference (CID 1615195)
authorJennifer Sutton <jennifersutton@catalyst.net.nz>
Fri, 2 Aug 2024 02:29:32 +0000 (14:29 +1200)
committerJo Sutton <jsutton@samba.org>
Mon, 26 May 2025 02:41:37 +0000 (02:41 +0000)
Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/winbindd/winbindd_msrpc.c

index a522172bd2d5ed57a91eb4609f2887ee8b103e3a..44ee26729cbec95ec6c06320581f86fc3683fed5 100644 (file)
@@ -1050,7 +1050,7 @@ static NTSTATUS winbindd_lookup_names(TALLOC_CTX *mem_ctx,
        enum lsa_LookupNamesLevel level = LSA_LOOKUP_NAMES_ALL;
 
  connect:
-       if (domains == NULL) {
+       if (domains != NULL) {
                *domains = NULL;
        }
        *sids = NULL;