From: Francois-Xavier Le Bail Date: Fri, 14 Sep 2018 19:37:53 +0000 (+0200) Subject: BGP: Fix an error string X-Git-Tag: tcpdump-4.99-bp~1014 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/3ad93074c1f679f6b2791f97ce301459a5ded35a BGP: Fix an error string "[|" is the prefix for a truncated string. This is not the case here. --- diff --git a/print-bgp.c b/print-bgp.c index 974c5e85..6f523585 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -3113,8 +3113,8 @@ bgp_print(netdissect_options *ndo, hlen = EXTRACT_BE_U_2(bgp_header->bgp_len); if (hlen < BGP_SIZE) { - ND_PRINT("\n[|BGP Bogus header length %u < %u]", hlen, - BGP_SIZE); + ND_PRINT("\nmessage length %u < %u", hlen, BGP_SIZE); + nd_print_invalid(ndo); break; }