ip: unformat_ip_address should no modify its argument on failure 44/36044/3
authorBenoît Ganne <bganne@cisco.com>
Tue, 26 Apr 2022 16:44:19 +0000 (18:44 +0200)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 1 Jun 2022 08:15:07 +0000 (08:15 +0000)
commitdd2f12ba6ab952d9d66f4d9ba89ffde6309b1ff2
tree54ac79bb3b4a3abe33f3eff7323e77da8648aa0f
parentd1ca70c7e11dac7b9fff802ca5f1d9051c984c34
ip: unformat_ip_address should no modify its argument on failure

When failing to match an ip address, we should not reset the ip address
that could have been initialized by a previous match.

Type: fix

Change-Id: I026766391eb3eb8230f75f66bf4b681e774741d9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vat/ip_types.c
src/vnet/ip/ip_types.c