summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-06-29 07:11:02 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-06-29 07:11:02 +0000
commitdb0f8a81b7d01229c3be9e13994596533b7fbb4f (patch)
treeb24541e7e6e425a61391974711c4d9d2e5c7f09f /usr.bin
parent6ddf377e3c37794f025ab924a563ce0e2dab162e (diff)
initialize early
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/ssh-keygen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 106b5ba3fbc..749ca1a0fd6 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -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>
@@ -401,6 +401,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) {
@@ -412,8 +414,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);