Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-dcerpc-spoolss.c:1722

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

dissect_spoolss_relstr

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c)expand/collapse
Show more  
 1691  dissect_spoolss_relstr(tvbuff_t *tvb, int offset, packet_info *pinfo,
 1692                         proto_tree *tree, guint8 *drep, int hf_index,
 1693                         int struct_start, char **data)
 1694  {
 1695          proto_item *item;
 1696          proto_tree *subtree;
 1697          guint32 relstr_offset, relstr_start, relstr_end;
 1698          char *text;
 1699   
 1700          /* Peek ahead to read the string.  We need this for the  
 1701             proto_tree_add_string() call so filtering will work. */
 1702   
 1703          offset = dissect_ndr_uint32(
 1704                  tvb, offset, pinfo, NULL, drep, hf_offset, &relstr_offset);
 1705   
 1706          relstr_start = relstr_offset + struct_start;
 1707   
 1708          if (relstr_offset) {
 1709                  relstr_end = dissect_spoolss_uint16uni(
 1710                          tvb, relstr_start, pinfo, NULL, drep, &text, NULL);
 1711          } else {                        /* relstr_offset == 0 is a NULL string */
 1712                  text = g_strdup("");
 1713                  relstr_end = relstr_start;
 1714          }
 1715                   
 1716          /* OK now add the proto item with the string value */
 1717   
 1718          item = proto_tree_add_string(tree, hf_index, tvb, relstr_start, relstr_end - relstr_start, text);
 1719          subtree = proto_item_add_subtree(item, ett_RELSTR);
 1720   
 1721          dissect_ndr_uint32(
 1722                  tvb, offset - 4, pinfo, subtree, drep, hf_offset, NULL);
 1723   
 1724          if (relstr_offset)
 1725                  dissect_spoolss_uint16uni(
 1726                          tvb, relstr_start, pinfo, subtree, drep, NULL, NULL);
 1727   
 1728          if (data)
 1729                  *data = text;
 1730          else 
 1731                  g_free(text);
 1732   
 1733          return offset;
 1734  }
Show more  




Change Warning 5412.35625 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: