Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-iapp.c:430

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

dissect_iapp

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-iapp.c)expand/collapse
Show more  
 411  dissect_iapp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 412  {
 413          proto_item *ti, *pdutf;
 414          proto_tree *iapp_tree, *pdutree;
 415          e_iapphdr ih;
 416          int ia_version;
 417          int ia_type;
 418          const gchar *codestrval;
 419   
 420          if (check_col(pinfo->cinfo, COL_PROTOCOL))
 421                  col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAPP");
 422   
 423          if (check_col(pinfo->cinfo, COL_INFO))
 424                  col_clear(pinfo->cinfo, COL_INFO);
 425   
 426          tvb_memcpy(tvb, (guint8 *)&ih, 0, sizeof(e_iapphdr));
 427   
 428          ia_version = (int)ih.ia_version;
 429          ia_type = (int)ih.ia_type;
 430          codestrval = val_to_str(ia_type, iapp_vals,  "Unknown Packet");
 431          if (check_col(pinfo->cinfo, COL_INFO))
 432          {
 433                  col_add_fstr(pinfo->cinfo, COL_INFO, "%s(%d) (version=%d)",
 434                               codestrval, ia_type, ia_version);
 435          }
 436   
 437          if (tree)
 438          {
 439                  ti = proto_tree_add_item(tree, proto_iapp, tvb, 0, -1, FALSE);
 440                  iapp_tree = proto_item_add_subtree(ti, ett_iapp);
 441   
 442                  /* common header for all IAPP frames */
 443   
 444                  proto_tree_add_uint(iapp_tree, hf_iapp_version, tvb, 0, 1,
 445                          ih.ia_version);
 446                  proto_tree_add_uint_format(iapp_tree, hf_iapp_type, tvb, 1, 1,
 447                          ih.ia_type, "Type: %s(%d)", codestrval, ia_type);
 448   
 449                  pdutf = proto_tree_add_text(iapp_tree, tvb, 2, -1,
 450                                  "Protocol data units");
 451                  pdutree = proto_item_add_subtree(pdutf, ett_iapp_pdu);
 452   
 453                  if (pdutree)
 454                  {
 455                          dissect_pdus(tvb, 2, pdutree,
 456                                  tvb_length_remaining(tvb, 2));
 457                  }
 458          }
 459  }
Show more  




Change Warning 5489.35749 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: