]> The Tcpdump Group git mirrors - tcpdump/commit
BGP: Fix a test invalid on a 32 bits system
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 10 Mar 2017 09:02:48 +0000 (10:02 +0100)
committerDenis Ovsienko <[email protected]>
Wed, 13 Sep 2017 11:25:44 +0000 (12:25 +0100)
commit78ba87d130caba9105e6a259bdae2891eb8b4d6f
tree080d1a75a3d4a7262730f17f3333c8715b541475
parent877b66b398518d9501513e0860c9f3a8acc70892
BGP: Fix a test invalid on a 32 bits system

The 'len - (tptr - pptr)' expression type is 'unsigned int' on a 32 bits
system.
Thus the conversion changes negative values to positive ones and the > 0
test is invalid.
Update the expression to compare two pointers.
print-bgp.c