aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2022-06-07 18:30:40 +0200
committerNathan Skrzypczak <nathan.skrzypczak@gmail.com>2022-06-07 18:30:44 +0200
commitb376e92f4420e40fe8f3cbab0dc1854eed2d3fff (patch)
treec0a1b939cfe2a2f22849eebf20168e3eed22b788
parent96158834db03036f9885654f198a02b68fc98830 (diff)
classify: fix sesssion details api
We were not allocating space for the variable length payload in the response message. Type: fix Change-Id: I345102f4555f66c5632ab0882ca1dd178e98eb7b Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
-rw-r--r--src/vnet/classify/classify_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/classify/classify_api.c b/src/vnet/classify/classify_api.c
index 53e3cb6c349..9353a647277 100644
--- a/src/vnet/classify/classify_api.c
+++ b/src/vnet/classify/classify_api.c
@@ -667,7 +667,7 @@ send_classify_session_details (vl_api_registration_t * reg,
{
vl_api_classify_session_details_t *rmp;
- rmp = vl_msg_api_alloc (sizeof (*rmp));
+ rmp = vl_msg_api_alloc (sizeof (*rmp) + match_length);
clib_memset (rmp, 0, sizeof (*rmp));
rmp->_vl_msg_id =
ntohs (REPLY_MSG_ID_BASE + VL_API_CLASSIFY_SESSION_DETAILS);