Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
9615883
)
classify: fix sesssion details api
43/36343/1
author
Nathan Skrzypczak
<
[email protected]
>
Tue, 7 Jun 2022 16:30:40 +0000
(18:30 +0200)
committer
Nathan Skrzypczak
<
[email protected]
>
Tue, 7 Jun 2022 16:30:44 +0000
(18:30 +0200)
We were not allocating space for the
variable length payload in the response
message.
Type: fix
Change-Id: I345102f4555f66c5632ab0882ca1dd178e98eb7b
Signed-off-by: Nathan Skrzypczak <
[email protected]
>
src/vnet/classify/classify_api.c
patch
|
blob
|
history
diff --git
a/src/vnet/classify/classify_api.c
b/src/vnet/classify/classify_api.c
index
53e3cb6
..
9353a64
100644
(file)
--- 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);