TLS: Don't add to the info column if the msp ends in the same frame

If a multisegment TLS pdu begins and ends in the same frame, don't
add "[TLS segment of a reassembled PDU]" to the info column.
This commit is contained in:
John Thacker 2022-03-03 07:03:06 -05:00
parent db85804e92
commit 3846d35529
1 changed files with 6 additions and 1 deletions

View File

@ -1249,8 +1249,13 @@ again:
const char *prefix;
if (msp->first_frame == pinfo->num) {
/* This must be after the first pass. */
prefix = "";
col_set_str(pinfo->cinfo, COL_INFO, "[TLS segment of a reassembled PDU]");
if (msp->last_frame == pinfo->num) {
col_clear(pinfo->cinfo, COL_INFO);
} else {
col_set_str(pinfo->cinfo, COL_INFO, "[TLS segment of a reassembled PDU]");
}
} else {
prefix = "Retransmitted ";
}