]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Fixed double free causing swapped ends to crash 5.1.1dr3
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 7 Sep 2013 06:25:10 +0000 (08:25 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 7 Sep 2013 06:25:10 +0000 (08:25 +0200)
src/libcharon/plugins/stroke/stroke_config.c

index bd3f76b0ecc5a79753c20ea00ffbed902de06f78..c069d508388818ec34ea636d50f90b6fa8a84d5f 100644 (file)
@@ -214,7 +214,6 @@ static ike_cfg_t *build_ike_cfg(private_stroke_config_t *this, stroke_msg_t *msg
                                        tmp_end = msg->add_conn.me;
                                        msg->add_conn.me = msg->add_conn.other;
                                        msg->add_conn.other = tmp_end;
-                                       host->destroy(host);
                                        swapped = TRUE;
                                }
                                host->destroy(host);