summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index a20b81cca..135c08bb0 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.196 2001/05/18 14:13:29 markus Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.197 2001/05/19 19:43:57 stevesk Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -618,10 +618,16 @@ main(int ac, char **av)
618 } 618 }
619 break; 619 break;
620 case 'g': 620 case 'g':
621 options.login_grace_time = atoi(optarg); 621 if ((options.login_grace_time = convtime(optarg)) == -1) {
622 fprintf(stderr, "Invalid login grace time.\n");
623 exit(1);
624 }
622 break; 625 break;
623 case 'k': 626 case 'k':
624 options.key_regeneration_time = atoi(optarg); 627 if ((options.key_regeneration_time = convtime(optarg)) == -1) {
628 fprintf(stderr, "Invalid key regeneration interval.\n");
629 exit(1);
630 }
625 break; 631 break;
626 case 'h': 632 case 'h':
627 if (options.num_host_key_files >= MAX_HOSTKEYS) { 633 if (options.num_host_key_files >= MAX_HOSTKEYS) {