aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/payloads
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-12-07 10:25:32 +0000
committerJan Hutter <jhutter@hsr.ch>2005-12-07 10:25:32 +0000
commitf4d8999cc1f6473d9ceee87b5a30857de0758b6b (patch)
tree19649c24599ffe24cd93ba05e0913f92a98291c7 /Source/charon/encoding/payloads
parent1d24f8fd03465185574f857aea338cb44fe52007 (diff)
downloadstrongswan-f4d8999cc1f6473d9ceee87b5a30857de0758b6b.tar.bz2
strongswan-f4d8999cc1f6473d9ceee87b5a30857de0758b6b.tar.xz
- added support for empty traffic selectors and empty sa payload in
IKE_AUTH request and reply
Diffstat (limited to 'Source/charon/encoding/payloads')
-rw-r--r--Source/charon/encoding/payloads/ts_payload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/encoding/payloads/ts_payload.c b/Source/charon/encoding/payloads/ts_payload.c
index d9e17c680..59b732245 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 = FAILED;
+ status_t status = SUCCESS;
if (this->critical)
{
@@ -340,7 +340,7 @@ ts_payload_t *ts_payload_create(bool is_initiator)
this->next_payload = NO_PAYLOAD;
this->payload_length =TS_PAYLOAD_HEADER_LENGTH;
this->is_initiator = is_initiator;
- this->number_of_traffic_selectors=0;
+ this->number_of_traffic_selectors = 0;
this->traffic_selectors = linked_list_create();
return &(this->public);