]> git.sur5r.net Git - openldap/commitdiff
Fix TLS parsing
authorHoward Chu <hyc@openldap.org>
Tue, 9 Jan 2007 01:35:31 +0000 (01:35 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 9 Jan 2007 01:35:31 +0000 (01:35 +0000)
servers/slapd/back-ldap/config.c

index afaad7e8fb962973afa06452b04cce40a355936f..9ea98fb72f08a0201629ac29a2dd71a1994ebc14 100644 (file)
@@ -1396,8 +1396,8 @@ done_url:;
                }
                li->li_flags &= ~LDAP_BACK_F_TLS_MASK;
                li->li_flags |= tls_mode[i].mask;
-               if ( c->argc > 2 ) {
-                       for ( i=0; i<c->argc; i++ ) {
+               if ( c->argc > 3 ) {
+                       for ( i=2; i<c->argc; i++ ) {
                                if ( bindconf_tls_parse( c->argv[i], &li->li_tls ))
                                        return 1;
                        }