]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9382 ldapvc doesn't set any LDAP controls with -E
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 1 Mar 2021 09:59:13 +0000 (09:59 +0000)
committerOndřej Kuzník <ondra@mistotebe.net>
Mon, 1 Mar 2021 10:28:53 +0000 (10:28 +0000)
clients/tools/ldapvc.c

index c412a4259c5002a02aa4595828a1ad842e2efdbd..04f458c149edac7e1d01cd80fd318d6d95d1d00a 100644 (file)
@@ -93,7 +93,6 @@ handle_private_option( int i )
 {
        switch ( i ) {
                char    *control, *cvalue;
-               int             crit;
        case 'E': /* vc extension */
                if( protocol == LDAP_VERSION2 ) {
                        fprintf( stderr, _("%s: -E incompatible with LDAPv%d\n"),
@@ -105,10 +104,8 @@ handle_private_option( int i )
                 *      [!]key[=value] parameters, e.g.  -E !foo,bar=567
                 */
 
-               crit = 0;
                cvalue = NULL;
                if( optarg[0] == '!' ) {
-                       crit = 1;
                        optarg++;
                }