map: Avoid null dereference in 'map show' and 'map del' 28/28228/2
authorJon Loeliger <[email protected]>
Thu, 21 Nov 2019 17:15:53 +0000 (11:15 -0600)
committerAndrew Yourtchenko <[email protected]>
Wed, 12 Aug 2020 07:43:14 +0000 (07:43 +0000)
commit897c941c8d1d8120e9935614b995d6fda5c2bf14
tree368377044bb648c95bddfe39a2c39bbbae383d3a
parent2b9bf4f4a723d2bcedcbea096c30fe4f4fa7f2a1
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 <[email protected]>
(cherry picked from commit 4a6d093e7ef72b06b35ffee911d35033dfde0171)
src/plugins/map/map.c