Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-nasdaq-soup.c:165

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

dissect_nasdaq_soup

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-nasdaq-soup.c)expand/collapse
Show more  
 154  dissect_nasdaq_soup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 155  {
 156      proto_item *ti;
 157      proto_tree *nasdaq_soup_tree = NULL;
 158      guint8 nasdaq_soup_type;
 159      int  linelen;
 160      gint next_offset;
 161      int  offset = 0;
 162      gint col_info;
 163      gint counter = 0;
 164   
 165      col_info = check_col(pinfo->cinfo, COL_INFO);
 166      while (tvb_offset_exists(tvb, offset)) {
 167        /* there's only a \n no \r */
 168        linelen = tvb_find_line_end(tvb, offset, -1, &next_offset, nasdaq_soup_desegment && pinfo->can_desegment);
 169        if (linelen == -1) {
 170          /*
 171           * We didn't find a line ending, and we're doing desegmentation;
 172           * tell the TCP dissector where the data for this message starts 
 173           * in the data it handed us, and tell it we need one more byte
 174           * (we may need more, but we'll try again if what we get next 
 175           * isn't enough), and return.
 176           */
 177          pinfo->desegment_offset = offset;
 178          pinfo->desegment_len = DESEGMENT_ONE_MORE_SEGMENT;
 179          return;
 180        }
 181   
 182        nasdaq_soup_type = tvb_get_guint8(tvb, offset);
 183        if (counter == 0) {
 184          if (check_col(pinfo->cinfo, COL_PROTOCOL))
 185              col_set_str(pinfo->cinfo, COL_PROTOCOL, "Nasdaq-SOUP");
 186          if (col_info)
 187              col_clear(pinfo->cinfo, COL_INFO);
 188        }
 189        if (col_info ) {
 190          if (counter) {
 191            col_append_str(pinfo->cinfo, COL_INFO, "; ");
 192            col_set_fence(pinfo->cinfo, COL_INFO);
 193          }
 194          col_append_str(pinfo->cinfo, COL_INFO, val_to_str(nasdaq_soup_type, message_types_val, "Unknown packet type (0x%02x)"));
 195        }
 196        counter++;
 197        if (tree) {
 198            ti = proto_tree_add_item(tree, proto_nasdaq_soup, tvb, offset, linelen +1, FALSE);
 199            nasdaq_soup_tree = proto_item_add_subtree(ti, ett_nasdaq_soup);
 200        }
 201        dissect_nasdaq_soup_packet(tvb, pinfo, tree, nasdaq_soup_tree, offset, linelen);
 202        offset = next_offset;
 203      }
 204  }
Show more  




Change Warning 5418.35640 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: