aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-03-25 17:02:45 +0100
committerTobias Brunner <tobias@strongswan.org>2013-03-25 17:02:45 +0100
commit38c410b1aa59322a3d4bdf8fc80e4d52e839b607 (patch)
tree780c7bf3d7459443ea39efc4c9e3e4c17a54f1a8 /src
parentf7fea72e4633c325ba4afc641a8920dce9e91e50 (diff)
downloadstrongswan-38c410b1aa59322a3d4bdf8fc80e4d52e839b607.tar.bz2
strongswan-38c410b1aa59322a3d4bdf8fc80e4d52e839b607.tar.xz
ipseckey: NULL pointer dereference fixed in error case
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/ipseckey/ipseckey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcharon/plugins/ipseckey/ipseckey.c b/src/libcharon/plugins/ipseckey/ipseckey.c
index 78ae2cc2a..ca126d772 100644
--- a/src/libcharon/plugins/ipseckey/ipseckey.c
+++ b/src/libcharon/plugins/ipseckey/ipseckey.c
@@ -133,6 +133,7 @@ ipseckey_t *ipseckey_create_frm_rr(rr_t *rr)
DBG1(DBG_CFG, "ipseckey RR has a wrong format");
reader->destroy(reader);
free(this);
+ return NULL;
}
switch (this->gateway_type)