summaryrefslogtreecommitdiff
path: root/print-egp.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-egp.c')
-rw-r--r--print-egp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/print-egp.c b/print-egp.c
index dda50587..6677343b 100644
--- a/print-egp.c
+++ b/print-egp.c
@@ -188,7 +188,6 @@ egpnr_print(netdissect_options *ndo,
length -= 4 - netlen;
if (length < 1)
goto trunc;
- ND_TCHECK_1(cp);
distances = GET_U_1(cp);
cp++;
length--;
@@ -212,14 +211,12 @@ egpnr_print(netdissect_options *ndo,
/* Pickup network number */
if (length < 1)
goto trunc;
- ND_TCHECK_1(cp);
addr = ((uint32_t) GET_U_1(cp)) << 24;
cp++;
length--;
if (IN_CLASSB(addr)) {
if (length < 1)
goto trunc;
- ND_TCHECK_1(cp);
addr |= ((uint32_t) GET_U_1(cp)) << 16;
cp++;
length--;