api: keep AddressSanitizer happy
Type: fix Change-Id: I793206068b8dca15b2f7f525ae1049139333c5b8 Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
16daaaacd1
commit
49bbf9e98a
@ -813,6 +813,7 @@ vl_msg_api_queue_handler (svm_queue_t * q)
|
||||
|
||||
while (!svm_queue_sub (q, (u8 *) &msg, SVM_Q_WAIT, 0))
|
||||
{
|
||||
VL_MSG_API_UNPOISON ((u8 *) msg);
|
||||
msgbuf_t *msgbuf = (msgbuf_t *) ((u8 *) msg - offsetof (msgbuf_t, data));
|
||||
vl_msg_api_handler ((void *) msg, ntohl (msgbuf->data_len));
|
||||
}
|
||||
|
Reference in New Issue
Block a user