From: Martin Willi Date: Tue, 12 May 2009 15:13:09 +0000 (+0200) Subject: fixed cleanup of traffic selector lists X-Git-Tag: 4.3.1~124 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=0a3ca29021ffe389ae4f7400ee05f42dcf384d6b;hp=8f0ab613e572f0f75cd32839920adb17f0c53534 fixed cleanup of traffic selector lists --- diff --git a/src/charon/sa/tasks/child_create.c b/src/charon/sa/tasks/child_create.c index 382266f..6bf9e9d 100644 --- a/src/charon/sa/tasks/child_create.c +++ b/src/charon/sa/tasks/child_create.c @@ -1126,11 +1126,11 @@ static void destroy(private_child_create_t *this) { chunk_free(&this->my_nonce); chunk_free(&this->other_nonce); - if (this->tsi) + if (this->tsr) { this->tsr->destroy_offset(this->tsr, offsetof(traffic_selector_t, destroy)); } - if (this->tsr) + if (this->tsi) { this->tsi->destroy_offset(this->tsi, offsetof(traffic_selector_t, destroy)); }