Only modify routes if SA has a valid address lease. On IKE SA rekey
authortobhe <tobhe@openbsd.org>
Fri, 9 Apr 2021 09:15:04 +0000 (09:15 +0000)
committertobhe <tobhe@openbsd.org>
Fri, 9 Apr 2021 09:15:04 +0000 (09:15 +0000)
commitfc2f8a0c91c2b7899bfadab787cba5ea4711e725
treee20d2646277c830b67a0fd8389ce3069b2ee0700
parentbe6be6eda05b9a64eefb083d7cfecd8aa5f07b1a
Only modify routes if SA has a valid address lease.  On IKE SA rekey
sa_cp_addr and sa_cp_addr6 are moved to the new SA before the old
SA is deleted.
Fixes a bug where host routes were deleted on IKE SA rekey.

ok patrick@
sbin/iked/policy.c