aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/payloads/ts_payload.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-12-02 12:38:55 +0000
committerMartin Willi <martin@strongswan.org>2005-12-02 12:38:55 +0000
commitccf783d29dba58e8e6aef211b8d050670b1d55ac (patch)
treea252d58ead4e682c0bb915dc09bc12c9f21565d6 /Source/charon/encoding/payloads/ts_payload.c
parentae3012a0ea0e06e29212f1967b5b71e90460fb43 (diff)
downloadstrongswan-ccf783d29dba58e8e6aef211b8d050670b1d55ac.tar.bz2
strongswan-ccf783d29dba58e8e6aef211b8d050670b1d55ac.tar.xz
- state ike_sa_init_responded implemented (has some memleaks)
Diffstat (limited to 'Source/charon/encoding/payloads/ts_payload.c')
-rw-r--r--Source/charon/encoding/payloads/ts_payload.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/charon/encoding/payloads/ts_payload.c b/Source/charon/encoding/payloads/ts_payload.c
index 2ca5bc8cb..d9e17c680 100644
--- a/Source/charon/encoding/payloads/ts_payload.c
+++ b/Source/charon/encoding/payloads/ts_payload.c
@@ -128,7 +128,7 @@ encoding_rule_t ts_payload_encodings[] = {
static status_t verify(private_ts_payload_t *this)
{
iterator_t *iterator;
- status_t status;
+ status_t status = FAILED;
if (this->critical)
{
@@ -142,7 +142,6 @@ static status_t verify(private_ts_payload_t *this)
}
iterator = this->traffic_selectors->create_iterator(this->traffic_selectors,TRUE);
-
while(iterator->has_next(iterator))
{
payload_t *current_traffic_selector;
@@ -154,10 +153,8 @@ static status_t verify(private_ts_payload_t *this)
break;
}
}
-
iterator->destroy(iterator);
-
return status;
}