]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2001/06/29 07:11:01
authormouring <mouring>
Wed, 4 Jul 2001 05:08:39 +0000 (05:08 +0000)
committermouring <mouring>
Wed, 4 Jul 2001 05:08:39 +0000 (05:08 +0000)
     [ssh-keygen.c]
     initialize early

ChangeLog
ssh-keygen.c

index 762e59b23b7d1a7d36be774f3d5665cc71b6485c..d640753a5fef6a85c607fba94e4870c5c666b727 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
    - markus@cvs.openbsd.org 2001/06/29 07:06:34
      [ssh-keygen.c]
      new error handling for cyberflex_*
+   - markus@cvs.openbsd.org 2001/06/29 07:11:01
+     [ssh-keygen.c]
+     initialize early
  
 20010629
  - (bal) Removed net_aton() since we don't use it any more
index f1e6d53c79a9961788b2fc0daf5dd237937fd615..bcb7ab2c3873540c59b0347e0e31d7f080bc2aaa 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.70 2001/06/29 07:06:34 markus Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.71 2001/06/29 07:11:01 markus Exp $");
 
 #include <openssl/evp.h>
 #include <openssl/pem.h>
@@ -405,6 +405,8 @@ do_upload(struct passwd *pw, int reader)
        int len, status = 1, i, fd = -1, ret;
        int r1 = 0, r2 = 0, cla = 0x00;
 
+       for (i = 0; i < NUM_RSA_KEY_ELEMENTS; i++)
+               elements[i] = NULL;
        if (!have_identity)
                ask_filename(pw, "Enter file in which the key is");
        if (stat(identity_file, &st) < 0) {
@@ -416,8 +418,6 @@ do_upload(struct passwd *pw, int reader)
                error("load failed");
                goto done;
        }
-       for (i = 0; i < NUM_RSA_KEY_ELEMENTS; i++)
-               elements[i] = NULL;
        COPY_RSA_KEY(q, 0);
        COPY_RSA_KEY(p, 1);
        COPY_RSA_KEY(iqmp, 2);
This page took 0.046401 seconds and 5 git commands to generate.