aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/message.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-08-05 15:41:45 +0200
committerTobias Brunner <tobias@strongswan.org>2013-10-11 15:55:40 +0200
commite8229ad558efcb7b07c6ef0f77269120d49500f9 (patch)
tree381b9b0c797ba4642775b9aa0f933dbb89239a47 /src/libcharon/encoding/message.c
parentd74c254dfd88b497a5262a3d8ce2dc7a684c74a8 (diff)
downloadstrongswan-e8229ad558efcb7b07c6ef0f77269120d49500f9.tar.bz2
strongswan-e8229ad558efcb7b07c6ef0f77269120d49500f9.tar.xz
iv_gen: Provide external sequence number (IKE, ESP)
This prevents duplicate sequential IVs in case of a HA failover.
Diffstat (limited to 'src/libcharon/encoding/message.c')
-rw-r--r--src/libcharon/encoding/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/encoding/message.c b/src/libcharon/encoding/message.c
index 9fc108b40..11e735a37 100644
--- a/src/libcharon/encoding/message.c
+++ b/src/libcharon/encoding/message.c
@@ -1622,7 +1622,7 @@ METHOD(message_t, generate, status_t,
htoun32(lenpos, chunk.len + encryption->get_length(encryption));
}
this->payloads->insert_last(this->payloads, encryption);
- if (encryption->encrypt(encryption, chunk) != SUCCESS)
+ if (encryption->encrypt(encryption, this->message_id, chunk) != SUCCESS)
{
generator->destroy(generator);
return INVALID_STATE;