Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-03-03 15:05:36 +0300
committerSimon Tatham <anakin@pobox.com>2001-03-03 15:05:36 +0300
commit146b5f5f6e3020d55ad8b3fd42520e15347530e6 (patch)
treeef6307c260e4a1020c1923584de784aed0ce0f85
parent28b1fc766c2907233d199de74e0d96accfda6a4b (diff)
Oops - fix silly segfault in new puttygen
[originally from svn r974]
-rw-r--r--puttygen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/puttygen.c b/puttygen.c
index e93781c4..8ce44b4a 100644
--- a/puttygen.c
+++ b/puttygen.c
@@ -789,10 +789,13 @@ static int CALLBACK MainDlgProc (HWND hwnd, UINT msg,
EnableWindow(GetDlgItem(hwnd, IDC_GENERATE), 1);
EnableWindow(GetDlgItem(hwnd, IDC_LOAD), 1);
EnableWindow(GetDlgItem(hwnd, IDC_SAVE), 1);
- if (state->ssh2)
+ if (state->ssh2) {
+ state->ssh2key.data = &state->key;
+ state->ssh2key.alg = &ssh_rsa;
state->commentptr = &state->ssh2key.comment;
- else
+ } else {
state->commentptr = &state->key.comment;
+ }
/*
* Invent a comment for the key. We'll do this by including
* the date in it. This will be so horrifyingly ugly that