summaryrefslogtreecommitdiff
path: root/src/libcharon/plugins/kernel_pfkey
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@corsac.net>2018-02-19 18:17:21 +0100
committerYves-Alexis Perez <corsac@corsac.net>2018-02-19 18:17:21 +0100
commit7793611ee71b576dd9c66dee327349fa64e38740 (patch)
treef1379ec1aed52a3c772874d4ed690b90975b9623 /src/libcharon/plugins/kernel_pfkey
parente1d78dc2faaa06e7c3f71ef674a71e4de2f0758e (diff)
downloadvyos-strongswan-7793611ee71b576dd9c66dee327349fa64e38740.tar.gz
vyos-strongswan-7793611ee71b576dd9c66dee327349fa64e38740.zip
New upstream version 5.6.2
Diffstat (limited to 'src/libcharon/plugins/kernel_pfkey')
-rw-r--r--src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c b/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
index 710107889..79abe587a 100644
--- a/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
+++ b/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
@@ -1752,13 +1752,13 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
#ifdef SADB_X_EXT_SA_REPLAY
if (data->inbound)
{
- struct sadb_x_sa_replay *replay;
+ struct sadb_x_sa_replay *repl;
- replay = (struct sadb_x_sa_replay*)PFKEY_EXT_ADD_NEXT(msg);
- replay->sadb_x_replay_exttype = SADB_X_EXT_SA_REPLAY;
- replay->sadb_x_replay_len = PFKEY_LEN(sizeof(struct sadb_x_sa_replay));
- replay->sadb_x_replay_replay = min(data->replay_window, UINT32_MAX-32);
- PFKEY_EXT_ADD(msg, replay);
+ repl = (struct sadb_x_sa_replay*)PFKEY_EXT_ADD_NEXT(msg);
+ repl->sadb_x_sa_replay_exttype = SADB_X_EXT_SA_REPLAY;
+ repl->sadb_x_sa_replay_len = PFKEY_LEN(sizeof(struct sadb_x_sa_replay));
+ repl->sadb_x_sa_replay_replay = min(data->replay_window, UINT32_MAX-32);
+ PFKEY_EXT_ADD(msg, repl);
}
#endif