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.
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 */
}
return pdu_len+4;
trunc:
- nd_print_trunc(ndo);
- return 0;
+ nd_trunc_longjmp(ndo);
}