]> git.sur5r.net Git - openldap/commitdiff
Fix MAXARGS boundary condition problem: slapd crashed if number of tokens
authorRandy Kunkee <kunkee@openldap.org>
Wed, 19 Jul 2000 01:40:05 +0000 (01:40 +0000)
committerRandy Kunkee <kunkee@openldap.org>
Wed, 19 Jul 2000 01:40:05 +0000 (01:40 +0000)
parsed == MAXARGS (only applicable if you have really large objectclasses).

servers/slapd/config.c

index e778c4ae63fa2724e937baa2c31a35ed8f25138b..6c12ae0aacbdd75bdfaf37b1fdb0ded5e1675ea7 100644 (file)
@@ -48,7 +48,7 @@ read_config( const char *fname )
        FILE    *fp;
        char    *line, *savefname, *saveline;
        int     cargc, savelineno;
-       char    *cargv[MAXARGS];
+       char    *cargv[MAXARGS+1];
        int     lineno, i;
 #ifdef HAVE_TLS
        int rc;