]> 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)
committerHoward Chu <hyc@openldap.org>
Sat, 21 May 2022 15:34:44 +0000 (16:34 +0100)
tests/progs/slapd-watcher.c

index 100e9474b6a661d6ec92df909102fd38d0678619..b8d6fa222dc14908171bdecaf80bed7b4d5b648e 100644 (file)
@@ -629,7 +629,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]);