diff options
author | Klement Sekera <ksekera@cisco.com> | 2020-03-30 16:59:38 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-04-06 08:59:20 +0000 |
commit | 1766ddca4406cbfddb2878990d580a6f9e34a58e (patch) | |
tree | e61bf109a53b8c925e1db2abc48ffbb65c171fd2 /src/vnet/ip/reass/ip4_full_reass.c | |
parent | 0250090fc0c24214cb1fa969f6e2f585099ee36b (diff) |
ip: reassembly: don't set error if no error
Type: fix
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I9d25129fbf1ea880121b281f41750155286fb489
Diffstat (limited to 'src/vnet/ip/reass/ip4_full_reass.c')
-rw-r--r-- | src/vnet/ip/reass/ip4_full_reass.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/ip/reass/ip4_full_reass.c b/src/vnet/ip/reass/ip4_full_reass.c index b1d8a56fb93..94136ff487c 100644 --- a/src/vnet/ip/reass/ip4_full_reass.c +++ b/src/vnet/ip/reass/ip4_full_reass.c @@ -1233,7 +1233,10 @@ ip4_full_reass_inline (vlib_main_t * vm, vlib_node_runtime_t * node, /* bi0 might have been updated by reass_finalize, reload */ b0 = vlib_get_buffer (vm, bi0); - b0->error = node->errors[error0]; + if (IP4_ERROR_NONE != error0) + { + b0->error = node->errors[error0]; + } if (next0 == IP4_FULL_REASS_NEXT_HANDOFF) { |