check security-related incompatible args (ITS#6849)

This commit is contained in:
Pierangelo Masarati 2011-03-02 14:14:39 +00:00
parent faa070d446
commit d7a8eff546

View File

@ -1197,6 +1197,12 @@ tool_args( int argc, char **argv )
}
#endif
}
if ( ( pw_file || want_bindpw ) && !BER_BVISNULL( &passwd ) ) {
fprintf( stderr, "%s: -%c incompatible with -w\n",
prog, ( pw_file ? 'y' : 'W' ) );
exit( EXIT_FAILURE );
}
}