]> andersk Git - openssh.git/commitdiff
- stevesk@cvs.openbsd.org 2002/06/27 19:49:08
authormouring <mouring>
Thu, 4 Jul 2002 00:07:13 +0000 (00:07 +0000)
committermouring <mouring>
Thu, 4 Jul 2002 00:07:13 +0000 (00:07 +0000)
     [ssh-keyscan.c]
     use convtime(); ok markus@

ChangeLog
ssh-keyscan.c

index e3e16aa811bb67bfcf879e8548f2de3d961e10a0..5cbe2a2f762442bc6b55fca19698a13e52aeaf00 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,9 @@
    - deraadt@cvs.openbsd.org 2002/06/27 10:35:47
      [auth2-none.c monitor.c sftp-client.c]
      use xfree()
+   - stevesk@cvs.openbsd.org 2002/06/27 19:49:08
+     [ssh-keyscan.c]
+     use convtime(); ok markus@
 
 20020702
  - (djm) Use PAM_MSG_MEMBER for PAM_TEXT_INFO messages, use xmalloc & 
index d9bbb91f88bd9eaa4cb59f118769820cfed5659c..cd8b63488c0942ce8a4705c23e9480baf3922856 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: ssh-keyscan.c,v 1.37 2002/06/27 08:49:44 markus Exp $");
+RCSID("$OpenBSD: ssh-keyscan.c,v 1.38 2002/06/27 19:49:08 stevesk Exp $");
 
 #include "openbsd-compat/fake-queue.h"
 
@@ -718,9 +718,11 @@ main(int argc, char **argv)
                        }
                        break;
                case 'T':
-                       timeout = atoi(optarg);
-                       if (timeout <= 0)
+                       timeout = convtime(optarg);
+                       if (timeout == -1 || timeout == 0) {
+                               fprintf(stderr, "Bad timeout '%s'\n", optarg);
                                usage();
+                       }
                        break;
                case 'v':
                        if (!debug_flag) {
This page took 0.188122 seconds and 5 git commands to generate.