X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c8a718a919f0ea88aea525ae4757bca6aac2dc4d..ba80bd184e5d74baeaf139a9d7d02dec8e370668:/print-ospf.c diff --git a/print-ospf.c b/print-ospf.c index a7b4cd59..dddf2ab1 100644 --- a/print-ospf.c +++ b/print-ospf.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.45.2.2 2003-11-16 08:51:37 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.45.2.3 2003-11-19 09:43:47 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -413,12 +413,11 @@ ospf_print_lsa(register const struct lsa *lsap) switch (*(&lsap->ls_hdr.un_lsa_id.opaque_field.opaque_type)) { case LS_OPAQUE_TYPE_TE: - if (!TTEST2(*tptr, 4)) - goto trunc; - tptr = (u_int8_t *)(&lsap->lsa_un.un_te_lsa_tlv.type); while (ls_length != 0) { + if (!TTEST2(*tptr, 4)) + goto trunc; if (ls_length < 4) { printf("\n\t Remaining LS length %u < 4", ls_length); return(ls_end);