]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Add additional debug level check to wb_xids2sids_recv()
authorAndreas Schneider <asn@samba.org>
Mon, 18 Jul 2022 11:28:50 +0000 (13:28 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 18 Jul 2022 14:44:07 +0000 (14:44 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Jul 18 14:44:07 UTC 2022 on sn-devel-184

source3/winbindd/wb_xids2sids.c

index ac0d2be5e0d23fad8aa294405c42eac384ee7722..c873cc2443b71de2e57847d695c10abf3591a836 100644 (file)
@@ -404,12 +404,14 @@ NTSTATUS wb_xids2sids_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
        }
 
        *sids = talloc_move(mem_ctx, &state->sids);
-       for (i = 0; i <  state->num_xids; i++) {
-               struct dom_sid_buf buf;
-               D_INFO("%lu: XID %u mapped to SID %s\n",
-                      i,
-                      state->xids[i].id,
-                      dom_sid_str_buf(&((*sids)[i]), &buf));
+       if (CHECK_DEBUGLVL(DBGLVL_INFO)) {
+               for (i = 0; i <  state->num_xids; i++) {
+                       struct dom_sid_buf buf;
+                       D_INFO("%lu: XID %u mapped to SID %s\n",
+                              i,
+                              state->xids[i].id,
+                              dom_sid_str_buf(&((*sids)[i]), &buf));
+               }
        }
        return NT_STATUS_OK;
 }