]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ipseckey: NULL pointer dereference fixed in error case
authorTobias Brunner <tobias@strongswan.org>
Mon, 25 Mar 2013 16:02:45 +0000 (17:02 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 25 Mar 2013 16:02:45 +0000 (17:02 +0100)
src/libcharon/plugins/ipseckey/ipseckey.c

index 78ae2cc2ac9e0bc2423ef7328d3669524e6227cf..ca126d7721bf604d4ed08dcd9c5203a2f4574ec2 100644 (file)
@@ -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)