1 Commits
Author SHA1 Message Date
Dmitriy AlexandrovandTobias Brunner b450865615 child-cfg: Fix apply_jitter() in case jitter is bigger than rekey value
Also avoid returning 0 and disabling rekeying in the rare case of
`jitter = rekey` and the `1/jitter` chance of that happening (returning
1 at least doesn't disable rekeying).

Co-authored-by: Tobias Brunner <[email protected]>

Closes strongswan/strongswan#1414
2022-12-12 14:24:32 +01:00