forked from osmocom/wireshark
Fix Coverity 393: "DEADCODE"; Add an XXX comment
svn path=/trunk/; revision=36373
This commit is contained in:
parent
941666d525
commit
0da2042447
|
@ -295,8 +295,7 @@ dissect_reload_framing_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_ERROR, "Unknown ReLOAD frame type");
|
DISSECTOR_ASSERT_NOT_REACHED();
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return tvb_length(tvb);
|
return tvb_length(tvb);
|
||||||
|
@ -317,6 +316,7 @@ dissect_reload_framing_message_no_return(tvbuff_t *tvb, packet_info *pinfo, prot
|
||||||
static void
|
static void
|
||||||
dissect_reload_framing_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
dissect_reload_framing_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
||||||
{
|
{
|
||||||
|
/* XXX: Check if we have a valid ReLOAD Frame Type ? */
|
||||||
tcp_dissect_pdus(tvb, pinfo, tree, TRUE, MIN_HDR_LENGTH,
|
tcp_dissect_pdus(tvb, pinfo, tree, TRUE, MIN_HDR_LENGTH,
|
||||||
get_reload_framing_message_length, dissect_reload_framing_message_no_return);
|
get_reload_framing_message_length, dissect_reload_framing_message_no_return);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue