X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/9716f7bd0f54ba52ef3faa6339ea8902fd39b0c3..82b302ba96d9a5f8fa5f50b95c638b0f38e883f6:/print-tcp.c diff --git a/print-tcp.c b/print-tcp.c index b42cefd2..5f13fae1 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -122,7 +122,7 @@ struct tok tcp_option_values[] = { { TCPOPT_SIGNATURE, "md5" }, { TCPOPT_AUTH, "enhanced auth" }, { TCPOPT_UTO, "uto" }, - { TCPOPT_MPTCP, "MPTCP" }, + { TCPOPT_MPTCP, "mptcp" }, { 0, NULL } }; @@ -599,7 +599,8 @@ tcp_print(register const u_char *bp, register u_int length, case TCPOPT_MPTCP: datalen = len - 2; - if (!mptcp_print(cp-2, len)) + LENCHECK(datalen); + if (!mptcp_print(cp-2, len, flags)) goto bad; break;