diff options
author | Ole Troan <ot@cisco.com> | 2021-03-09 09:25:33 +0100 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-03-09 10:11:57 +0000 |
commit | d01caf7fa215d2cbea8cfab1d3d0b6d9d04a5661 (patch) | |
tree | bae44aa70d63fbae2c5e43c4cfc729d59c434765 /src/plugins/nat/pnat/pnat_api.c | |
parent | b0c2ec5e7c84241e0f5beb5fdf8a60cf111d5ffb (diff) |
pnat: coverity fixes
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Ia1cfdbd39ed458cb3fffd29a8b6d6eff64644de8
Diffstat (limited to 'src/plugins/nat/pnat/pnat_api.c')
-rw-r--r-- | src/plugins/nat/pnat/pnat_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/pnat/pnat_api.c b/src/plugins/nat/pnat/pnat_api.c index dad658c3e9e..cb7afaaedb1 100644 --- a/src/plugins/nat/pnat/pnat_api.c +++ b/src/plugins/nat/pnat/pnat_api.c @@ -145,7 +145,7 @@ static void send_interfaces_details(u32 index, vl_api_registration_t *rp, rmp->sw_if_index = i->sw_if_index; clib_memcpy(rmp->enabled, i->enabled, PNAT_ATTACHMENT_POINT_MAX); clib_memcpy(rmp->lookup_mask, i->lookup_mask, - sizeof(i->lookup_mask) * PNAT_ATTACHMENT_POINT_MAX); + sizeof(vl_api_pnat_mask_t) * PNAT_ATTACHMENT_POINT_MAX); /* Endian hack until apigen registers _details * endian functions */ |