dhcp: fix dhcp_compl_event 69/36069/4
authorJing Peng <pj.hades@gmail.com>
Fri, 29 Apr 2022 19:14:07 +0000 (15:14 -0400)
committerNeale Ranns <neale@graphiant.com>
Mon, 2 May 2022 06:46:18 +0000 (06:46 +0000)
commit6a2868734c2f96186b6bfb705969a5daa702ebb6
tree6c237bbd7bedb4969f6caa7bc46478bfe00db2af
parent39d88cc0d4e9f419ff04ad5bc7ebb17ebe446bb2
dhcp: fix dhcp_compl_event

This patch fixes two problems:

1. The lease field in the dhcp_compl_event message can include a list of
vl_api_domain_server_t structs, but no memory is allocated for it.
2. The DNS server address is not copied properly, resulting in wrong IP4
addresses in the event message.

Type: fix

Signed-off-by: Jing Peng <pj.hades@gmail.com>
Change-Id: I42c533e7af697568c69714011d983f88368a7e15
src/plugins/dhcp/dhcp_api.c