diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 15:38:43 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-04-14 18:11:45 +0200 |
commit | b0fd7d14824b06310a38cb16eaa347ebca803b4f (patch) | |
tree | ccef5402cf48727374e5c277bb8ac84e5da4a729 /src | |
parent | 3c3c832a1065ddea661bae59bcf513ff5b1775ef (diff) | |
download | strongswan-b0fd7d14824b06310a38cb16eaa347ebca803b4f.tar.bz2 strongswan-b0fd7d14824b06310a38cb16eaa347ebca803b4f.tar.xz |
Proper cleanup if IDs in ipsec.secrets cannot be parsed.
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/plugins/stroke/stroke_cred.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_cred.c b/src/libcharon/plugins/stroke/stroke_cred.c index 5a6d8febd..e7c7e9c07 100644 --- a/src/libcharon/plugins/stroke/stroke_cred.c +++ b/src/libcharon/plugins/stroke/stroke_cred.c @@ -768,6 +768,8 @@ static bool load_shared(private_stroke_cred_t *this, chunk_t line, int line_nr, if (ugh != NULL) { DBG1(DBG_CFG, "line %d: %s", line_nr, ugh); + shared_key->destroy(shared_key); + owners->destroy_offset(owners, offsetof(identification_t, destroy)); return FALSE; } if (id.len == 0) |