diff options
author | Aleksander Djuric <aleksander.djuric@gmail.com> | 2019-10-31 14:35:21 +0300 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-07-03 01:48:33 +0000 |
commit | 64b6dd7f8f120251e10ee84ff491beb6bae36e82 (patch) | |
tree | d6eb455ade4dd28d342c43fedd1d61f0c58bbb61 /src/vnet | |
parent | f6a8a3a31c34c3c1dadffb257a64fe31faeff9c7 (diff) |
interface: shmemioerror while getting name_filter arg
Type: fix
Signed-off-by: Aleksander Djuric <aleksander.djuric@gmail.com>
Change-Id: I5e0eb7024d208040d79e9d6db863f41e2ecf4ee6
Signed-off-by: Ole Troan <ot@cisco.com>
(cherry picked from commit c12eae73f925169597e20a8f8139c462e317404d)
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/interface_api.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index dd78d2aa8a7..1fe12e8d044 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -327,9 +327,8 @@ vl_api_sw_interface_dump_t_handler (vl_api_sw_interface_dump_t * mp) if (mp->name_filter_valid) { - filter = - format (0, ".*%s", vl_api_string_len (&mp->name_filter), - vl_api_from_api_string (&mp->name_filter), 0); + filter = vl_api_from_api_to_vec (&mp->name_filter); + vec_add1 (filter, 0); /* Ensure it's a C string for strcasecmp() */ } char *strcasestr (char *, char *); /* lnx hdr file botch */ |