aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-05-12 17:13:09 +0200
committerMartin Willi <martin@strongswan.org>2009-05-15 10:07:33 +0200
commite1ae5d94ae0d79cca28ec28cc61044a75f469883 (patch)
tree3dc36e49b3605c5de436e196c7d0b68a5a21b3ac
parent40510c663d442f801bd7be99e7ba012c1cd97929 (diff)
downloadstrongswan-e1ae5d94ae0d79cca28ec28cc61044a75f469883.tar.bz2
strongswan-e1ae5d94ae0d79cca28ec28cc61044a75f469883.tar.xz
fixed cleanup of traffic selector lists
-rw-r--r--src/charon/sa/tasks/child_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/sa/tasks/child_create.c b/src/charon/sa/tasks/child_create.c
index b3bb1840d..706db14b7 100644
--- a/src/charon/sa/tasks/child_create.c
+++ b/src/charon/sa/tasks/child_create.c
@@ -1137,11 +1137,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));
}