s3:winbind: Fix pointer access in wb_xids2sids_recv()
authorAndreas Schneider <asn@samba.org>
Mon, 18 Jul 2022 07:20:22 +0000 (09:20 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 18 Jul 2022 13:46:33 +0000 (13:46 +0000)
CID 1507348
CID 1507349

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_xids2sids.c

index 17e612b736861212952c2665322a0c114087520f..ac0d2be5e0d23fad8aa294405c42eac384ee7722 100644 (file)
@@ -409,7 +409,7 @@ NTSTATUS wb_xids2sids_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
                D_INFO("%lu: XID %u mapped to SID %s\n",
                       i,
                       state->xids[i].id,
-                      dom_sid_str_buf(&*sids[i], &buf));
+                      dom_sid_str_buf(&((*sids)[i]), &buf));
        }
        return NT_STATUS_OK;
 }