Remove two bounds checks now useless with GET_ macros uses.
The check on 'lshp->ls_router' is needed before ipaddr_string() call.
{
if ((const u_char *)(lshp + 1) > dataend)
goto trunc;
{
if ((const u_char *)(lshp + 1) > dataend)
goto trunc;
- ND_TCHECK_2(lshp->ls_type);
- ND_TCHECK_4(lshp->ls_seq);
+ ND_TCHECK_4(lshp->ls_router);
ND_PRINT("\n\t Advertising Router %s, seq 0x%08x, age %us, length %u",
ipaddr_string(ndo, lshp->ls_router),
ND_PRINT("\n\t Advertising Router %s, seq 0x%08x, age %us, length %u",
ipaddr_string(ndo, lshp->ls_router),