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 bd3f76b..c069d50 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);