From 1b3f92d28daaab081d94c0e484d361ec59a3e93a Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Thu, 1 Dec 2005 19:53:48 +0000 Subject: - fixed bugs --- Source/charon/encoding/message.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/charon/encoding/message.c') 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, ¤t_encrypted_payload); -- cgit v1.2.3