aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-08-04 14:22:48 +0200
committerTobias Brunner <tobias@strongswan.org>2010-08-04 14:22:48 +0200
commitdca2d89209ade805002df9ea2525887624a302bb (patch)
tree2b1b3e5824f1b41b7e2554125ac62e71eb670f57 /src
parent83628fd60072e13bbb1ed19f6fdb51bf26f6b245 (diff)
downloadstrongswan-dca2d89209ade805002df9ea2525887624a302bb.tar.bz2
strongswan-dca2d89209ade805002df9ea2525887624a302bb.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/stroke/stroke_cred.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_cred.c b/src/libcharon/plugins/stroke/stroke_cred.c
index 16fc844ec..8dd0bb031 100644
--- a/src/libcharon/plugins/stroke/stroke_cred.c
+++ b/src/libcharon/plugins/stroke/stroke_cred.c
@@ -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);