Fix SEGV in generic event sub reaper 58/13058/2
authorMatthew Smith <mgsmith@netgate.com>
Thu, 14 Jun 2018 16:40:49 +0000 (11:40 -0500)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 14 Jun 2018 18:56:16 +0000 (18:56 +0000)
commitd465631c3c97b4eb387b4b2dd851e301dc09e007
tree9a3dfc307e5c5c0550e16fa4cb3b05d9d4d41665
parent1f806587d8e1d94ee7630cee134fbaae2de2f31e
Fix SEGV in generic event sub reaper

When a client subscribed to receive events disconnects
from the API, while deleting their subscription, a hash
lookup was being performed against a pointer that did
not refer to a hash, resulting in a SEGV.

Perform the hash lookup against the correct hash.

Change-Id: I011d7479e2c3b9ee50721cf7499385c3ff7f704a
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vlibapi/api_helper_macros.h