ike-sa: Avoid possible integer underflow when scheduling reauth after rekeying
authorTobias Brunner <tobias@strongswan.org>
Fri, 15 Jan 2021 15:19:49 +0000 (16:19 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 14:49:08 +0000 (15:49 +0100)
commit97857eaa120d5b5ae666370d0f2b924b47c13a8d
tree8419f37924a0ba19cad5b84586a90fd4a0f749b7
parent20dfbcad0875fc0b3fa2be1478d3b5adedee8e92
ike-sa: Avoid possible integer underflow when scheduling reauth after rekeying

If the reauthentication is scheduled while rekeying, the difference
might be negative, however, schedule_job() takes an unsigned int,
so the reauth would get scheduled very far in the future.
src/libcharon/sa/ike_sa.c