Fixed loading of private keys without password.

The chunk storing the password was not correctly initialized, resulting
in a segmentation fault when no password was specified in ipsec.secrets.
This commit is contained in:
Tobias Brunner
2010-08-04 14:22:48 +02:00
parent 83628fd600
commit dca2d89209
+1 -1
View File
@@ -955,7 +955,7 @@ static bool load_private(private_stroke_cred_t *this, chunk_t line, int line_nr,
{
char path[PATH_MAX];
chunk_t filename;
chunk_t secret;
chunk_t secret = chunk_empty;
private_key_t *key;
err_t ugh = extract_value(&filename, &line);