]> git.sur5r.net Git - openldap/commitdiff
improve slapacl option sanity checks
authorPierangelo Masarati <ando@openldap.org>
Tue, 20 Apr 2004 09:17:26 +0000 (09:17 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 20 Apr 2004 09:17:26 +0000 (09:17 +0000)
servers/slapd/slapcommon.c

index f3c73d93a70a125a6fe5953fe9b1ddb529e93048..a42b652890ff21556c1b9dbbd5ce3b37a28f15e2 100644 (file)
@@ -297,6 +297,9 @@ slap_tool_init(
                break;
 
        case SLAPACL:
+               if ( argc == optind ) {
+                       usage( tool, progname );
+               }
                if ( !BER_BVISNULL( &authcDN ) && !BER_BVISNULL( &authcID ) ) {
                        usage( tool, progname );
                }