Text   |  XML   |  ReML   |   Visible Warnings:

Empty if Statement  at packet-vlan.c:132

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

dissect_vlan

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vlan.c)expand/collapse
Show more  
 122         (IPX/SPX is they only thing that can be contained inside a
 123         straight 802.3 packet, so presumably the same applies for
 124         Ethernet VLAN packets). A non-0xffff value means that there's an 
 125         802.2 layer inside the VLAN layer */
 126      is_802_2 = TRUE;
 127      TRY {
 128              if (tvb_get_ntohs(tvb, 4) == 0xffff) {
 129                is_802_2 = FALSE;
 130              }
 131      }
 132      CATCH2(BoundsError, ReportedBoundsError) {
 133              ; /* do nothing */
 134   
 135      }
 136      ENDTRY;
 137   
 138      dissect_802_3(encap_proto, is_802_2, tvb, 4, pinfo, tree, vlan_tree,
 139                    hf_vlan_len, hf_vlan_trailer, 0);
 140    } else {
 141      ethertype(encap_proto, tvb, 4, pinfo, tree, vlan_tree,
 142                         hf_vlan_etype, hf_vlan_trailer, 0);
Show more  




Change Warning 78.27514 : Empty if Statement

Priority:
State:
Finding:
Owner:
Note: