fixed memleak when initiating a connection already up
authorMartin Willi <martin@strongswan.org>
Tue, 4 Jul 2006 13:29:16 +0000 (13:29 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 4 Jul 2006 13:29:16 +0000 (13:29 -0000)
src/charon/threads/stroke_interface.c

index 528d490..f6736a8 100755 (executable)
@@ -505,6 +505,7 @@ static void stroke_initiate(private_stroke_t *this, stroke_msg_t *msg)
                {
                        this->stroke_logger->log(this->stroke_logger, CONTROL,
                                        "connection \"%s\" already up", msg->initiate.name);
+                       connection->destroy(connection);
                }
                while (ike_sas->remove_last(ike_sas, (void**)&ike_sa_id) == SUCCESS)
                {