pluto: Fixed off by one error when reading private keys.
This commit is contained in:
@@ -494,7 +494,6 @@ static err_t process_rsa_secret(private_key_t **key)
|
|||||||
if (ugh)
|
if (ugh)
|
||||||
{
|
{
|
||||||
ugh = builddiag("RSA data malformed (%s): %s", ugh, tok);
|
ugh = builddiag("RSA data malformed (%s): %s", ugh, tok);
|
||||||
part++;
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
rsa_chunk[part] = chunk_create(buf, sz);
|
rsa_chunk[part] = chunk_create(buf, sz);
|
||||||
|
|||||||
Reference in New Issue
Block a user