From: Guy Harris Date: Wed, 27 May 2020 09:28:20 +0000 (-0700) Subject: esis: explain why we're doing ND_TTEST_LEN(pptr, 1). X-Git-Tag: tcpdump-4.99-bp~364 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/228f225ca02da1ee61f169301cfa73c56a8265cf esis: explain why we're doing ND_TTEST_LEN(pptr, 1). --- diff --git a/print-isoclns.c b/print-isoclns.c index 3859c8ff..9e83e613 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -1382,6 +1382,10 @@ esis_print(netdissect_options *ndo, default: if (ndo->ndo_vflag <= 1) { + /* + * If there's at least one byte to print, print + * it/them. + */ if (ND_TTEST_LEN(pptr, 1)) print_unknown_data(ndo, pptr, "\n\t ", ND_BYTES_AVAILABLE_AFTER(pptr)); }