ITS#9382 ldapvc doesn't set any LDAP controls with -E

This commit is contained in:
Ondřej Kuzník 2021-03-01 09:59:13 +00:00
parent a44706f646
commit 171e0d89cd

View 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++;
}