diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-30 09:26:06 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-30 09:26:06 +0000 |
commit | b09e85f929d89c40969362144db8106597896121 (patch) | |
tree | c00191bfd04a356ebb075b88e7576016d2e42983 /Source/charon/encoding/message.c | |
parent | ee29afd42b721e84fb4de942fb8d7e784da28b49 (diff) | |
download | strongswan-b09e85f929d89c40969362144db8106597896121.tar.bz2 strongswan-b09e85f929d89c40969362144db8106597896121.tar.xz |
- fixed bug when finding out if payload has to get encrypted
Diffstat (limited to 'Source/charon/encoding/message.c')
-rw-r--r-- | Source/charon/encoding/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/encoding/message.c b/Source/charon/encoding/message.c index 804603135..6b389eee0 100644 --- a/Source/charon/encoding/message.c +++ b/Source/charon/encoding/message.c @@ -894,11 +894,12 @@ static status_t encrypt_payloads (private_message_t *this,crypter_t *crypter, si status = this->get_message_rule(this, &message_rule); if (status != SUCCESS) { + this->logger->log(this->logger, ERROR | MORE, "No message rule for this message type"); return status; } - if (!message_rule->encrypted_content) { + this->logger->log(this->logger, CONTROL | MORE, "Message doesn't have to be encrypted"); /* message contains no content to encrypt */ return SUCCESS; } @@ -927,7 +928,6 @@ static status_t encrypt_payloads (private_message_t *this,crypter_t *crypter, si if ((status == SUCCESS) && (supported_payload_entry->encrypted)) { to_encrypt = TRUE; - break; } if (to_encrypt) |