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>
vpe_client_registration_t *rp; \
uword *p; \
\
- p = hash_get (vam->lca##_registrations, client_index); \
+ p = hash_get (vam->lca##_registration_hash, client_index); \
if (p) \
{ \
rp = pool_elt_at_index (vam->lca##_registrations, p[0]); \