From: Ondřej Kuzník Date: Mon, 1 Mar 2021 09:59:13 +0000 (+0000) Subject: ITS#9382 ldapvc doesn't set any LDAP controls with -E X-Git-Tag: OPENLDAP_REL_ENG_2_5_3BETA~6^2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=171e0d89cd5d45e515b06d8111ac1b7aeaa697cb;p=thirdparty%2Fopenldap.git ITS#9382 ldapvc doesn't set any LDAP controls with -E --- diff --git a/clients/tools/ldapvc.c b/clients/tools/ldapvc.c index c412a4259c..04f458c149 100644 --- a/clients/tools/ldapvc.c +++ b/clients/tools/ldapvc.c @@ -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++; }