ipsec: fix use-after-free 37/22537/2
authorBenoît Ganne <bganne@cisco.com>
Mon, 9 Sep 2019 14:34:54 +0000 (16:34 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 7 Oct 2019 13:14:02 +0000 (13:14 +0000)
commit07228c09a63316f9a9551ed392df8a1e00d96db6
tree903903b2e1a278b33fec2d3cedb56fe2c6d2b0e9
parentc3852703415c4bcefc9db4b0a7fc4d417fce550b
ipsec: fix use-after-free

When deleting interface from the API, 'hi' gets removed before
'h->sw_if_index' is copied.

Type: fix

Change-Id: I8e10108e9bdf95ab2fe002790d98262d583ca58c
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 8133c780a22480496c74a4ead321e8350d5beeb4)
src/vnet/ipsec/ipsec_if.c