]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
pluto: Fixed off by one error when reading private keys.
authorTobias Brunner <tobias@strongswan.org>
Tue, 12 Apr 2011 13:54:29 +0000 (15:54 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 12 Apr 2011 13:54:29 +0000 (15:54 +0200)
src/pluto/keys.c

index 86b46c6c1732faad6b38aac128422fcb06819ab8..4b0e08791b136c730ea4f6366ed4d2b524077108 100644 (file)
@@ -494,7 +494,6 @@ static err_t process_rsa_secret(private_key_t **key)
                if (ugh)
                {
                        ugh = builddiag("RSA data malformed (%s): %s", ugh, tok);
-                       part++;
                        goto end;
                }
                rsa_chunk[part] = chunk_create(buf, sz);