Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at proto.c:3698

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

dissect_llap

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-atalk.c)expand/collapse
Show more  
 1844  dissect_llap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 1845  {
 1846    guint8 dnode;
 1847    guint8 snode;
 1848    guint8 type;
 1849    proto_tree *llap_tree = NULL;
 1850    proto_item *ti;
 1851    tvbuff_t   *new_tvb;
 1852   
 1853[+]   if (check_col(pinfo->cinfo, COL_PROTOCOL))
 1854      col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLAP");
 1855    if (check_col(pinfo->cinfo, COL_INFO))
 1856      col_clear(pinfo->cinfo, COL_INFO);
 1857   
 1858    if (tree) {
 1859      ti = proto_tree_add_item(tree, proto_llap, tvb, 0, 3, FALSE);
 1860      llap_tree = proto_item_add_subtree(ti, ett_llap);
 1861    }
 1862   
 1863    dnode = tvb_get_guint8(tvb, 0);
 1864    if (tree)
 1865      proto_tree_add_uint(llap_tree, hf_llap_dst, tvb, 0, 1, dnode);
 1866    snode = tvb_get_guint8(tvb, 1);
 1867    if (tree)
 1868      proto_tree_add_uint(llap_tree, hf_llap_src, tvb, 1, 1, snode);
 1869[+]   type = tvb_get_guint8(tvb, 2);
 1870[+]   if (check_col(pinfo->cinfo, COL_INFO)) {
 1871      col_add_str(pinfo->cinfo, COL_INFO,
 1872        val_to_str(type, llap_type_vals, "Unknown LLAP type (%02x)"));
 1873    }
 1874    if (tree)
 1875      proto_tree_add_uint(llap_tree, hf_llap_type, tvb, 2, 1, type);
 1876   
 1877    new_tvb = tvb_new_subset(tvb, 3, -1, -1);
 1878   
 1879    switch (type) {
 1880   
 1881    case 0x01:
 1882[+][+]     if (proto_is_protocol_enabled(find_protocol_by_id(proto_ddp))) {
expand/collapse

proto_is_protocol_enabled

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.c)expand/collapse
Show more  
 3696  proto_is_protocol_enabled(protocol_t *protocol)
 3697  {
 3698          return protocol->is_enabled;
Show more  
Show more  




Change Warning 1919.33399 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: