nat: fix static mapping segv 86/34086/3
authorJoshua Roys <roysjosh@gmail.com>
Tue, 12 Oct 2021 13:25:47 +0000 (09:25 -0400)
committerDamjan Marion <dmarion@me.com>
Wed, 13 Oct 2021 14:32:15 +0000 (14:32 +0000)
commitf9074fc51544d1849a2df06713c1ccf6cb2eb908
tree7140daaa2766fcfb0faede2c5c37b7f0ed3eb599
parent82f618c35f4a7182a98fda69fa07f2335a7d03ea
nat: fix static mapping segv

Adding a nat44 static mapping during startup on a DHCP interface leads
to a segv via this path:
- dhcp_client_acquire_address
- ip4_add_del_interface_address
- ip4_add_del_interface_address_internal
- nat44_ed_add_del_interface_address_cb
- nat44_ed_add_static_mapping
- ip4_interface_first_address

Type: fix

Signed-off-by: Joshua Roys <roysjosh@gmail.com>
Change-Id: I38dac8a096b052550f2b87b4e13a950d2cd868b0
src/plugins/nat/nat44-ed/nat44_ed.c