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:
authorkmscode <kmscode@users.noreply.github.com>2017-09-09 23:02:28 +0300
committerkmscode <kmscode@users.noreply.github.com>2017-09-09 23:02:28 +0300
commitabaf7932ecff87924e81e0979da337bd53a1a56b (patch)
tree1680e2332cfe40304c0aa789f7bd77db3a23c5b1 /IMPORT.C
parenta1a7ca5a2db5915a917cd4e69d59b4114437fa20 (diff)
merge upstream 0.70 tag
https://git.tartarus.org/?p=simon/putty.git;a=commit;h=3cd10509a51edf5a21cdc80aabf7e6a934522d47
Diffstat (limited to 'IMPORT.C')
-rw-r--r--IMPORT.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/IMPORT.C b/IMPORT.C
index adf68777..88589a71 100644
--- a/IMPORT.C
+++ b/IMPORT.C
@@ -445,7 +445,7 @@ static struct openssh_pem_key *load_openssh_pem_key(const Filename *filename,
if (!strcmp(p, "ENCRYPTED"))
ret->encrypted = TRUE;
} else if (!strcmp(line, "DEK-Info")) {
- int i, j, ivlen;
+ int i, ivlen;
if (!strncmp(p, "DES-EDE3-CBC,", 13)) {
ret->encryption = OP_E_3DES;
@@ -459,6 +459,7 @@ static struct openssh_pem_key *load_openssh_pem_key(const Filename *filename,
}
p = strchr(p, ',') + 1;/* always non-NULL, by above checks */
for (i = 0; i < ivlen; i++) {
+ unsigned j;
if (1 != sscanf(p, "%2x", &j)) {
errmsg = "expected more iv data in DEK-Info";
goto error;