ikev2: prevent crash after no IP address 15/30015/2
authorFilip Tehlar <ftehlar@cisco.com>
Wed, 7 Oct 2020 19:17:00 +0000 (19:17 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 26 Nov 2020 15:02:41 +0000 (15:02 +0000)
commit83c70b7a5afd230ab38544e55ec853646de4daf6
tree42115eb00d2997118d81c6bc2dec601b53c105ca
parent8b69f7546e205470623d0ea1542e0488eb3f625f
ikev2: prevent crash after no IP address

Type: fix
Ticket: VPP-1900

This fixes a crash when initiating IKE connection using interface
without any IP address.
It also ensures that the IKE connection is automatically retried once the
interface obtains an address.

Signed-off-by: jan_cavojsky <Jan.Cavojsky@pantheon.tech>
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Change-Id: Ia1919c349e64b3a0a4198365e075e177e3ba3de5
(cherry picked from commit 6960da528443ea40b1cdab323c76f978f7b16a8b)
src/plugins/ikev2/ikev2.c