aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/message.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-12-01 19:53:48 +0000
committerJan Hutter <jhutter@hsr.ch>2005-12-01 19:53:48 +0000
commit1b3f92d28daaab081d94c0e484d361ec59a3e93a (patch)
tree845a2056912236d500f8b7b79c5d58c04a82a1e3 /Source/charon/encoding/message.c
parent257fa503864d47420e6b9e16fad70587293d7edc (diff)
downloadstrongswan-1b3f92d28daaab081d94c0e484d361ec59a3e93a.tar.bz2
strongswan-1b3f92d28daaab081d94c0e484d361ec59a3e93a.tar.xz
- fixed bugs
Diffstat (limited to 'Source/charon/encoding/message.c')
-rw-r--r--Source/charon/encoding/message.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/charon/encoding/message.c b/Source/charon/encoding/message.c
index a22608e86..d3b92f3f1 100644
--- a/Source/charon/encoding/message.c
+++ b/Source/charon/encoding/message.c
@@ -892,6 +892,7 @@ static status_t decrypt_and_verify_payloads (private_message_t *this,crypter_t *
if (encryption_payload->get_payload_count(encryption_payload) == 0)
{
+ this->logger->log(this->logger, CONTROL | MORE, "Encrypted payload is empty");
iterator->remove(iterator);
encryption_payload->destroy(encryption_payload);
/* encrypted payload contains no other payload */
@@ -908,10 +909,13 @@ static status_t decrypt_and_verify_payloads (private_message_t *this,crypter_t *
* Set the next payload of proceeding payload
* to the first payload of encrypted ones */
last_payload->set_next_type(last_payload,current_payload_type);
- }
+ }
+ break;
}
+ this->logger->log(this->logger, CONTROL | MORE, "Encrypted payload is not empty");
+
/* encryption_payload is replaced with first encrypted payload*/
encryption_payload->remove_first_payload(encryption_payload, &current_encrypted_payload);