diff options
author | Martin Willi <martin@strongswan.org> | 2005-12-02 12:38:55 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-12-02 12:38:55 +0000 |
commit | ccf783d29dba58e8e6aef211b8d050670b1d55ac (patch) | |
tree | a252d58ead4e682c0bb915dc09bc12c9f21565d6 /Source/charon/encoding/payloads/ts_payload.c | |
parent | ae3012a0ea0e06e29212f1967b5b71e90460fb43 (diff) | |
download | strongswan-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.c | 5 |
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; } |