utils_ovs: fix potential NULL
authorKavanagh, Mark B <mark.b.kavanagh@intel.com>
Mon, 26 Feb 2018 17:08:31 +0000 (17:08 +0000)
committerCiara Loftus <ciara.loftus@intel.com>
Tue, 27 Mar 2018 11:44:47 +0000 (12:44 +0100)
commit7858bf59eeed7b8769dd7258af7ea223e37287e4
tree18fb08ab9809f39f5fe796844dfb53a2ec999364
parentd3617d45b787a4856359740717bb6936c98a241a
utils_ovs: fix potential NULL

In ovs_utils_get_map_value(), YAJL_GET_ARRAY may return a NULL
pointer, which is subsequently dereferenced. Ensure that the
pointer is non-NULL before proceeding.

Fixes: 12f6497 ("ovs_events: Add external ids as metadata")
Signed-off-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
src/utils_ovs.c