(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ranap.c) |
| |
| 11563 | | | static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) |
| 11564 | | | { |
| 11565 | | | |
| 11566 | | | int ret = 0; |
| 11567 | | | int key; |
| 11568 | | | |
| 11569 | | | |
| 11570 | | | switch(ProcedureCode){ |
| 11571 | | | case id_RelocationPreparation: |
| 11572 | | | if((ProtocolIE_ID == id_Source_ToTarget_TransparentContainer)||(ProtocolIE_ID == id_Target_ToSource_TransparentContainer)){ |
| 11573 | | | key = SPECIAL || ProtocolIE_ID; |
Unreachable Conditional
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 11574 | | | ret = (dissector_try_port_new(ranap_ies_dissector_table, key, tvb, pinfo, tree, FALSE)) ? tvb_length(tvb) : 0; |
| 11575 | | | } |
| 11576 | | | break; |
| 11577 | | | default: |
| 11578 | | | |
| 11579 | | | ret = (dissector_try_port_new(ranap_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree, FALSE)) ? tvb_length(tvb) : 0; |
| 11580 | | | if (ret == 0) { |
| 11581 | | | key = pdu_type || ProtocolIE_ID; |
| 11582 | | | ret = (dissector_try_port_new(ranap_ies_dissector_table, key, tvb, pinfo, tree, FALSE)) ? tvb_length(tvb) : 0; |
| 11583 | | | } |
| 11584 | | | break; |
| 11585 | | | } |
| 11586 | | | return ret; |
| 11587 | | | } |
| |