message: Store original encrypted payload when generating fragments

If we don't do this, get_plain() will fail after generating the message
fragmented.
This commit is contained in:
Tobias Brunner 2021-07-19 17:12:09 +02:00
parent 0be0f59fef
commit 4980f08548

View File

@ -2254,7 +2254,7 @@ METHOD(message_t, fragment, status_t,
data = generator->get_chunk(generator, NULL);
if (!is_encoded(this))
{
encrypted->destroy(encrypted);
this->payloads->insert_last(this->payloads, encrypted);
}
aead = keymat->get_aead(keymat, FALSE);
/* overhead for the encrypted fragment payload */