]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9850 slapd-watcher: don't ignore sids when only 1 URL was specified
authorHoward Chu <hyc@openldap.org>
Sat, 21 May 2022 15:34:44 +0000 (16:34 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 3 Jun 2022 20:32:02 +0000 (20:32 +0000)
tests/progs/slapd-watcher.c

index 116d63fbdaefa8524b841e86fe9df77de2f24e4f..ef9233a279dd88e3ee977c84ecadd932a27664d5 100644 (file)
@@ -628,7 +628,7 @@ main( int argc, char **argv )
                monfilter = MONFILTER;
        }
 
-       if ( numservers > 1 ) {
+       if ( sids || numservers > 1 ) {
                for ( i=0; i<numservers; i++ )
                        if ( sids )
                                servers[i].sid = atoi(sids[i]);