Commit cea5bf33 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix critical argument handling

parent c00657ac
......@@ -10,6 +10,7 @@ OpenLDAP 2.1.17 Engineering
Fixed slapd request flooding bug (ITS#2389)
Fixed slurpd one shot mode (ITS#2385)
Fixed slurpd core dump on exit (ITS#2363)
Fixed clients critical argument handling
Removed lint (ITS#2382)
Documentation
Update slurpd(8) -u usage
......
......@@ -114,10 +114,10 @@ tool_args( int argc, char **argv )
char *control, *cvalue;
switch( i ) {
case 'c': /* continuous operation mode */
contoper = 1;
contoper++;
break;
case 'C':
referrals = 1;
referrals++;
break;
case 'd':
debug |= atoi( optarg );
......@@ -260,10 +260,10 @@ tool_args( int argc, char **argv )
break;
case 'M':
/* enable Manage DSA IT */
manageDSAit = 1;
manageDSAit++;
break;
case 'n': /* print operations, don't actually do them */
not = 1;
not++;
break;
case 'O':
#ifdef HAVE_CYRUS_SASL
......@@ -372,7 +372,7 @@ tool_args( int argc, char **argv )
#endif
break;
case 'v': /* verbose mode */
verbose = 1;
verbose++;
break;
case 'V': /* version */
version++;
......@@ -389,7 +389,7 @@ tool_args( int argc, char **argv )
passwd.bv_len = strlen( passwd.bv_val );
break;
case 'W':
want_bindpw = 1;
want_bindpw++;
break;
case 'y':
pw_file = optarg;
......@@ -440,7 +440,7 @@ tool_args( int argc, char **argv )
break;
case 'Z':
#ifdef HAVE_TLS
use_tls = 1;
use_tls++;
#else
fprintf( stderr, "%s: not compiled with TLS support\n", prog );
exit( EXIT_FAILURE );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment