vat: fix socket connection 05/26505/4
authorDave Barach <dave@barachs.net>
Tue, 14 Apr 2020 13:52:26 +0000 (09:52 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 14 Apr 2020 21:40:46 +0000 (21:40 +0000)
commit69eeadc03f30c9fb3fe1bb7e2eeb6b04d1bcc596
tree69b5310a89ee9e556b6edc5b1a7f4c6ecda3add4
parent1bd461615f31022a7b721990b09b1dcdd543b339
vat: fix socket connection

vat_socket_connect(...) needs to set the api main client index. The M2
helper macro needed to allocate a buffer of size sizeof(*mp) + n, not
sizeof(*mp).

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I7abf35d2ba045d82765bd27f88899287fd351602
src/vat/api_format.c
src/vlibapi/vat_helper_macros.h