From: Ole Troan Date: Mon, 11 Mar 2019 12:15:54 +0000 (+0100) Subject: ICMP46 error: Clone first buffer instead of "truncating" original buffer X-Git-Tag: v19.04-rc1~249 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=da7f7b6164e976a97ff0afb13f488c60461402bc;hp=da7f7b6164e976a97ff0afb13f488c60461402bc;p=vpp.git ICMP46 error: Clone first buffer instead of "truncating" original buffer Previous code was walked buffer chain, effectively trying to "truncate" the chain, reset the length of first buffer and reused that as the ICMP error message. That could have issues in cases there were other users of the buffer chain. Update to clone the first buffer in chain, and use that for the ICMP error message instead. Change-Id: Ibc1a0bf2d854dae41874808c8297028ed93dd69d Signed-off-by: Ole Troan ---