diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2020-10-02 19:11:10 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2020-10-02 20:01:29 +0100 |
commit | 7294fd8057c19caff7f0da9b5502d81a31e33561 (patch) | |
tree | d948d598b360338e0f6aaad508fbc4e7d6cf0998 /print-ldp.c | |
parent | 4f15e3afd16092b566d71ca2817e8931ec320920 (diff) | |
download | tcpdump-7294fd8057c19caff7f0da9b5502d81a31e33561.tar.gz |
LDP: Use nd_trunc_longjmp().
Do not enable ND_LONGJMP_FROM_TCHECK yet because decode_prefix4() and
decode_prefix6() would require an nd_trunc_longjmp() each in the middle
of the code, maybe a cleaner solution emerges later.
Diffstat (limited to 'print-ldp.c')
-rw-r--r-- | print-ldp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/print-ldp.c b/print-ldp.c index 7f029e6d..75e6dd20 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -538,8 +538,7 @@ ldp_tlv_print(netdissect_options *ndo, return(tlv_len+4); /* Type & Length fields not included */ trunc: - nd_print_trunc(ndo); - return 0; + nd_trunc_longjmp(ndo); invalid: return(tlv_len+4); /* Type & Length fields not included */ @@ -697,6 +696,5 @@ ldp_pdu_print(netdissect_options *ndo, } return pdu_len+4; trunc: - nd_print_trunc(ndo); - return 0; + nd_trunc_longjmp(ndo); } |