]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Add additional debug level check to wb_gettoken_recv()
authorPavel Filipenský <pfilipensky@samba.org>
Tue, 19 Jul 2022 14:48:09 +0000 (16:48 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 21 Jul 2022 13:47:31 +0000 (13:47 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/wb_gettoken.c

index 0c0f14fd1515f8f90f6b8fc90c05c6a8d7c12713..3930f71d98d83e03f735b83dbdc87e7e59f99705 100644 (file)
@@ -244,11 +244,17 @@ NTSTATUS wb_gettoken_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
                return status;
        }
        *num_sids = state->num_sids;
-       for (i = 0; i < state->num_sids; i++) {
-               struct dom_sid_buf sidbuf;
        D_INFO("WB command gettoken end.\nReceived %"PRIu32" SID(s).\n",
               state->num_sids);
-               D_INFO("%"PRIu32": %s\n", i, dom_sid_str_buf(&state->sids[i], &sidbuf));
+
+       if (CHECK_DEBUGLVL(DBGLVL_INFO)) {
+               for (i = 0; i < state->num_sids; i++) {
+                       struct dom_sid_buf sidbuf;
+                       D_INFO("%"PRIu32": %s\n",
+                              i,
+                              dom_sid_str_buf(&state->sids[i],
+                              &sidbuf));
+               }
        }
 
        *sids = talloc_move(mem_ctx, &state->sids);