]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Add additional debug level check to wb_lookupusergroups_recv()
authorAndreas Schneider <asn@samba.org>
Mon, 18 Jul 2022 11:26:58 +0000 (13:26 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 18 Jul 2022 13:46:33 +0000 (13:46 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/wb_lookupusergroups.c

index cc04c8a80e730ff85747f64fda66345178b1816f..c4ac1be80786be2e51c031c11e2d1587296619e2 100644 (file)
@@ -109,9 +109,11 @@ NTSTATUS wb_lookupusergroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
 
        D_INFO("WB command lookupusergroups end.\nReceived %u SID(s).\n",
               *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));
+       if (CHECK_DEBUGLVL(DBGLVL_INFO)) {
+               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));
+               }
        }
        return NT_STATUS_OK;
 }