fixed cleanup of traffic selector lists

This commit is contained in:
Martin Willi
2009-05-12 17:13:09 +02:00
parent 8f0ab613e5
commit 0a3ca29021
+2 -2
View File
@@ -1126,11 +1126,11 @@ static void destroy(private_child_create_t *this)
{ {
chunk_free(&this->my_nonce); chunk_free(&this->my_nonce);
chunk_free(&this->other_nonce); chunk_free(&this->other_nonce);
if (this->tsi) if (this->tsr)
{ {
this->tsr->destroy_offset(this->tsr, offsetof(traffic_selector_t, destroy)); 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)); this->tsi->destroy_offset(this->tsi, offsetof(traffic_selector_t, destroy));
} }