diff options
author | kmscode <kmscode@users.noreply.github.com> | 2017-09-09 23:02:28 +0300 |
---|---|---|
committer | kmscode <kmscode@users.noreply.github.com> | 2017-09-09 23:02:28 +0300 |
commit | abaf7932ecff87924e81e0979da337bd53a1a56b (patch) | |
tree | 1680e2332cfe40304c0aa789f7bd77db3a23c5b1 /IMPORT.C | |
parent | a1a7ca5a2db5915a917cd4e69d59b4114437fa20 (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.C | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |