map: Avoid null dereference in 'map show' and 'map del' 91/23591/4
authorJon Loeliger <jdl@netgate.com>
Thu, 21 Nov 2019 17:15:53 +0000 (11:15 -0600)
committerOle Trøan <otroan@employees.org>
Tue, 3 Dec 2019 19:02:35 +0000 (19:02 +0000)
commit4a6d093e7ef72b06b35ffee911d35033dfde0171
treee62a596104b7e12b2d07660544bf2e4c80913ea8
parent08f26641fa920d5a9629140430660adcf736a1c7
map: Avoid null dereference in 'map show' and 'map del'

If a map domain is created without a tag name, inspecting
the map data will segfault looking for an unset name in
the so-called "domain extras" vector.

Enhance "show map domain" to show all map domains.

Type: fix
Change-Id: Ic55662b84eec58221816da270b2ef9e89c3a31c3
Signed-off-by: Jon Loeliger <jdl@netgate.com>
src/plugins/map/map.c