diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-21 13:45:07 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-21 13:45:07 +0000 |
commit | be23069176497ec6f6dcfe680c87268fb2043d2e (patch) | |
tree | 513a870f151d98742583f2b2e3471f0c1d6df206 | |
parent | af94e7968b2f8137d5c59bcadc10960e1f1f0d22 (diff) | |
download | strongswan-be23069176497ec6f6dcfe680c87268fb2043d2e.tar.bz2 strongswan-be23069176497ec6f6dcfe680c87268fb2043d2e.tar.xz |
- current payload type was read at wrong location
-rw-r--r-- | Source/charon/message.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/charon/message.c b/Source/charon/message.c index 78d544769..aa850c3a0 100644 --- a/Source/charon/message.c +++ b/Source/charon/message.c @@ -610,8 +610,9 @@ static status_t parse_body (private_message_t *this) while (current_payload_type != NO_PAYLOAD) { payload_t *current_payload; - bool supported = FALSE; + + this->logger->log(this->logger, ERROR, "Start parsing payload of type %s", mapping_find(payload_type_m, current_payload_type)); for (i = 0; i < supported_payloads_count;i++) { if (supported_payloads[i].payload_type == current_payload_type) @@ -635,8 +636,6 @@ static status_t parse_body (private_message_t *this) break; } - current_payload_type = current_payload->get_next_type(current_payload); - status = current_payload->verify(current_payload); if (status != SUCCESS) { @@ -644,6 +643,9 @@ static status_t parse_body (private_message_t *this) status = VERIFY_ERROR; break; } + + /* get next payload type */ + current_payload_type = current_payload->get_next_type(current_payload); status = this->payloads->insert_last(this->payloads,current_payload); if (status != SUCCESS) |