]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Fix pointer access in wb_lookupusergroups_recv()
authorAndreas Schneider <asn@samba.org>
Mon, 18 Jul 2022 07:18:59 +0000 (09:18 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 18 Jul 2022 13:46:33 +0000 (13:46 +0000)
Fixes CID 1507350

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/wb_lookupusergroups.c

index 3ec25b493935ad93fe2e11af9893b5003039bea7..cc04c8a80e730ff85747f64fda66345178b1816f 100644 (file)
@@ -111,7 +111,7 @@ NTSTATUS wb_lookupusergroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
               *num_sids);
        for (i = 0; i < *num_sids; i++) {
                struct dom_sid_buf buf;
-               D_INFO("%u: %s\n", i, dom_sid_str_buf(&*sids[i], &buf));
+               D_INFO("%u: %s\n", i, dom_sid_str_buf(&((*sids)[i]), &buf));
        }
        return NT_STATUS_OK;
 }