mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
Validate timelimit argument
This commit is contained in:
parent
b873db292c
commit
6b822b67ef
@ -222,6 +222,11 @@ main( int argc, char **argv )
|
||||
break;
|
||||
case 'l': /* time limit */
|
||||
timelimit = atoi( optarg );
|
||||
if( timelimit < 0 ) {
|
||||
fprintf( stderr, "%s: invalid timelimit (%d) specified\n",
|
||||
prog, timelimit );
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
break;
|
||||
case 'L': /* print entries in LDIF format */
|
||||
++ldif;
|
||||
|
Loading…
x
Reference in New Issue
Block a user