diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-09-11 10:05:43 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-09-11 10:12:43 +0200 |
commit | 5ef0bcb5edd748de9d9af13c40da0395dfdd94e8 (patch) | |
tree | 142c0d3deffc56dca3f1af2b33e19687735d26d8 /print-juniper.c | |
parent | a520beed7396c2edf80eae9c4533b78a88721965 (diff) | |
download | tcpdump-5ef0bcb5edd748de9d9af13c40da0395dfdd94e8.tar.gz |
Revert partially the commit 21b1273
This change add back 4 ND_TCHECK_n() because their removal may be unsafe.
(via Denis comment)
Diffstat (limited to 'print-juniper.c')
-rw-r--r-- | print-juniper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/print-juniper.c b/print-juniper.c index 164973c6..1560cee5 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -1534,6 +1534,7 @@ juniper_parse_header(netdissect_options *ndo, #endif #ifdef DLT_JUNIPER_ATM2 case DLT_JUNIPER_ATM2: + ND_TCHECK_4(p); /* ATM cell relay control word present ? */ if (l2info->cookie[7] & ATM2_PKT_TYPE_MASK) { control_word = GET_BE_U_4(p); |