]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Add additional debug level check to winbindd_getgroups_recv()
authorPavel Filipenský <pfilipensky@samba.org>
Tue, 19 Jul 2022 14:21:57 +0000 (16:21 +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/winbindd_getgroups.c

index da1ce2d9a29f3ef57b2fec26b14cd7dc6118615d..c2603cc7026cb5c602c0ca065a92c6c83b58affe 100644 (file)
@@ -267,8 +267,10 @@ NTSTATUS winbindd_getgroups_recv(struct tevent_req *req,
        D_NOTICE("Winbind external command GETGROUPS end.\n"
                 "Received %"PRIu32" entries.\n",
                 response->data.num_entries);
-       for (i = 0; i < state->num_gids; i++) {
-               D_NOTICE("%"PRIu32": GID %u\n", i, state->gids[i]);
+       if (CHECK_DEBUGLVL(DBGLVL_NOTICE)) {
+               for (i = 0; i < state->num_gids; i++) {
+                       D_NOTICE("%"PRIu32": GID %u\n", i, state->gids[i]);
+               }
        }
 
        if (state->num_gids > 0) {