]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slapcommon.c
fix ITS#3406 wrt/ dnattr; silence warning
[openldap] / servers / slapd / slapcommon.c
index 41642c6ceda19e2fcb818eded7d78ce624f89c58..56c2b613c1bba25eb24bc9a94b3fa2f687d276d5 100644 (file)
@@ -201,7 +201,7 @@ slap_tool_init(
                        break;
 
                case 'n':       /* which config file db to index */
-                       dbnum = atoi( optarg ) - 1;
+                       dbnum = atoi( optarg );
                        break;
 
                case 'q':       /* turn on quick */
@@ -441,7 +441,7 @@ slap_tool_init(
                        exit( EXIT_FAILURE );
                }
                
-               be = &backends[dbnum=0];
+               be = &backends[dbnum=1];
                /* If just doing the first by default and it is a
                 * glue subordinate, find the master.
                 */