CVSROOT: /cvs Module name: src Changes by: [email protected] 2015/10/20 05:29:07
Modified files:
usr.sbin/tcpdump: print-bgp.c
Log message:
Add an explicit check for a malformed AS segment with (segment length 0),
avoiding division by zero when deciding whether it contains 2- or 4-byte ASNs.
Refactor TCHECK calls to ensure proper coverage.
>From Kevin Reay, ok canacar with wording tweak (I used "malformed" rather
than canacar's suggested "invalid size" or Kevin's original "empty").
