mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
kernel-netlink: Never use XFRMA_REPLAY_ESN_VAL to configure zero replay windows
Trying to disable replay windows using the ESN attribute fails with EINVAL. Use non-ESN legacy format to disable replay windows, even if ESN has been negotiated over IKE.
This commit is contained in:
parent
d345f0b75d
commit
8b9b11919d
@ -1460,7 +1460,7 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
|
||||
|
||||
if (protocol != IPPROTO_COMP)
|
||||
{
|
||||
if (esn || replay_window > 32)
|
||||
if (replay_window != 0 && (esn || replay_window > 32))
|
||||
{
|
||||
/* for ESN or larger replay windows we need the new
|
||||
* XFRMA_REPLAY_ESN_VAL attribute to configure a bitmap */
|
||||
|
Loading…
x
Reference in New Issue
Block a user