diff options
author | 2016-12-02 15:41:03 +0000 | |
---|---|---|
committer | 2016-12-02 20:52:56 +0000 | |
commit | 3b222a35e2f343ff70fb03db31dd866d548e32b3 (patch) | |
tree | 730a7c5390cfaa10ef9936d83b96739bb098addb /vpp | |
parent | df1059f057065b06287b7b94613cc11debd158f3 (diff) |
Coverity errors in MPLS code
Change-Id: I3f98e3c30e29198cb8701bfb846ce194b7250ed7
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r-- | vpp/vpp-api/api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c index c110769b..b778d3ca 100644 --- a/vpp/vpp-api/api.c +++ b/vpp/vpp-api/api.c @@ -2149,7 +2149,8 @@ vl_api_mpls_tunnel_add_del_t_handler (vl_api_mpls_tunnel_add_del_t * mp) } else { - vnet_mpls_tunnel_del (ntohl (mp->mt_sw_if_index)); + tunnel_sw_if_index = ntohl (mp->mt_sw_if_index); + vnet_mpls_tunnel_del (tunnel_sw_if_index); } dsunlock (sm); |