Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-wsp.c:5501

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

add_uri

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-wsp.c)expand/collapse
Show more  
 5483  add_uri (proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb,
 5484                  guint URILenOffset, guint URIOffset, proto_item *proto_ti)
 5485  {
 5486          proto_item *ti;
 5487   
 5488          guint count = 0;
 5489          guint uriLen = tvb_get_guintvar (tvb, URILenOffset, &count);
 5490          gchar *str = NULL;
 5491   
 5492          if (tree)
 5493                  ti = proto_tree_add_uint (tree, hf_wsp_header_uri_len,
 5494                                  tvb, URILenOffset, count, uriLen);
 5495   
 5496          tvb_ensure_bytes_exist(tvb, URIOffset, uriLen);
 5497          if (tree)
 5498                  ti = proto_tree_add_item (tree, hf_wsp_header_uri,
 5499                                  tvb, URIOffset, uriLen, bo_little_endian);
 5500   
 5501          str = tvb_format_text (tvb, URIOffset, uriLen);
 5502          /* XXX - tvb_format_text() returns a pointer to a static text string
 5503           * so please DO NOT attempt at g_free()ing it!
 5504           */
 5505          if (check_col(pinfo->cinfo, COL_INFO)) {
 5506                  col_append_fstr(pinfo->cinfo, COL_INFO, " %s", str);
 5507          }
 5508          if (proto_ti)
 5509                  proto_item_append_text(proto_ti, ", URI: %s", str);
 5510  }
Show more  




Change Warning 5469.35691 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: