]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Fix rotating nonstandard debug class log files
authorVolker Lendecke <vl@samba.org>
Thu, 13 Feb 2020 15:44:38 +0000 (16:44 +0100)
committerMartin Schwenke <martins@samba.org>
Wed, 19 Feb 2020 09:38:39 +0000 (09:38 +0000)
Looking at the same pointer in the loop does not really make sense to
me

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
lib/util/debug.c

index 6f081d45110423ba8e52ebc5e38a444745bf423a..d7449c5c690ce8185aa0de3e2de1b040ab4b99f6 100644 (file)
@@ -1147,7 +1147,7 @@ bool reopen_logs_internal(void)
        oldumask = umask( 022 );
 
        for (i = DBGC_ALL; i < debug_num_classes; i++) {
-               if (dbgc_config[DBGC_ALL].logfile != NULL) {
+               if (dbgc_config[i].logfile != NULL) {
                        break;
                }
        }