mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
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:
parent
0be0f59fef
commit
4980f08548
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user