Validate timelimit argument

This commit is contained in:
Kurt Zeilenga 2001-01-23 20:51:14 +00:00
parent b873db292c
commit 6b822b67ef

View File

@ -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;