ovs_events: fix potential NULL pointer dereference
authorMark Kavanagh <mark.b.kavanagh@intel.com>
Mon, 19 Feb 2018 13:06:36 +0000 (13:06 +0000)
committerCiara Loftus <ciara.loftus@intel.com>
Tue, 27 Mar 2018 09:46:41 +0000 (10:46 +0100)
commit2b719323d06bb58f23fa7c43135739d0ab0cca12
treec1f7ba77b61f14a4d3891ab2ea2433e113653a6b
parent79a8e6dee4b68231969434bf2a98a08c2bf8041e
ovs_events: fix potential NULL pointer dereference

A potentially-NULL pointer to ovs_events_iface_info_t is defererenced
by an invocation of sizeof(), within ovs_events_get_iface_info().

Move the offending line, such that it is executed after the
NULL-pointer check.

Fixes: f6adec45 ("ovs_events: Fix notification metadata garbage.")
Signed-off-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
src/ovs_events.c