aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/encoding/message.c')
-rw-r--r--src/libcharon/encoding/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/encoding/message.c b/src/libcharon/encoding/message.c
index 232cfa353..0d55b8a05 100644
--- a/src/libcharon/encoding/message.c
+++ b/src/libcharon/encoding/message.c
@@ -1224,9 +1224,9 @@ static status_t decrypt_payloads(private_message_t *this, aead_t *aead)
break;
}
chunk.len -= encryption->get_length(encryption);
- if (!encryption->decrypt(encryption, chunk))
+ status = encryption->decrypt(encryption, chunk);
+ if (status != SUCCESS)
{
- status = VERIFY_ERROR;
break;
}