ovs_stats: fix potential NULL array dereference
authorKavanagh, Mark B <mark.b.kavanagh@intel.com>
Mon, 26 Feb 2018 14:49:00 +0000 (14:49 +0000)
committerCiara Loftus <ciara.loftus@intel.com>
Tue, 27 Mar 2018 11:44:44 +0000 (12:44 +0100)
commit286f164a217885337e00b86f86b0a77d0c4845cc
tree62fd29298bd526f4e811b2f16c5f740d3f9c55bd
parentd70f64f4c908c0016fa26c976a74511b4ac4478d
ovs_stats: fix potential NULL array dereference

In ovs_stats_update_bridge(), YAJL_GET_ARRAY() may return a NULL
pointer. Ensure that a non-NULL pointer is returned, before
attempting to dererence same.

Fixes: 4256753 ("ovs_events: fix scan-build warnings #2205")
Signed-off-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
src/ovs_stats.c