summaryrefslogtreecommitdiff
path: root/ssh-keyscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r--ssh-keyscan.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c
index d9bbb91f8..cd8b63488 100644
--- a/ssh-keyscan.c
+++ b/ssh-keyscan.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9#include "includes.h" 9#include "includes.h"
10RCSID("$OpenBSD: ssh-keyscan.c,v 1.37 2002/06/27 08:49:44 markus Exp $"); 10RCSID("$OpenBSD: ssh-keyscan.c,v 1.38 2002/06/27 19:49:08 stevesk Exp $");
11 11
12#include "openbsd-compat/fake-queue.h" 12#include "openbsd-compat/fake-queue.h"
13 13
@@ -718,9 +718,11 @@ main(int argc, char **argv)
718 } 718 }
719 break; 719 break;
720 case 'T': 720 case 'T':
721 timeout = atoi(optarg); 721 timeout = convtime(optarg);
722 if (timeout <= 0) 722 if (timeout == -1 || timeout == 0) {
723 fprintf(stderr, "Bad timeout '%s'\n", optarg);
723 usage(); 724 usage();
725 }
724 break; 726 break;
725 case 'v': 727 case 'v':
726 if (!debug_flag) { 728 if (!debug_flag) {