}
/* Markers are used by either the Initiator or the Responder or both. */
- if (state->ini_exp_m_res || state->res_exp_m_ini) {
+ if ((state->ini_exp_m_res || state->res_exp_m_ini) && endpoint <= MPA_RESPONDER) {
/* find the TCP sequence number of the first FPDU */
if (!state->minfo[endpoint].valid) {
return FALSE;
/* removes Markers if any and prepares new tvbuff for next dissector */
- if (state->minfo[endpoint].valid
+ if (endpoint <= MPA_RESPONDER && state->minfo[endpoint].valid
&& number_of_markers(state, tcpinfo, endpoint) > 0) {
next_tvb = tvb_new_subset(remove_markers(tvb, pinfo,
get_first_marker_offset(state, tcpinfo, endpoint),