Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-dcerpc-nt.c:235

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

cb_byte_array_postprocess

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-nt.c)expand/collapse
Show more  
 215  static void cb_byte_array_postprocess(packet_info *pinfo, proto_tree *tree _U_,
 216                          proto_item *item, tvbuff_t *tvb,
 217                          int start_offset, int end_offset,
 218                          void *callback_args)
 219  {
 220          gint options = GPOINTER_TO_INT(callback_args);
 221          gint levels = CB_STR_ITEM_LEVELS(options);
 222          char *s;
 223   
 224          /* Align start_offset on 4-byte boundary. */
 225   
 226          if (start_offset % 4)
 227                  start_offset += 4 - (start_offset % 4);
 228   
 229          /* Get byte array value */
 230   
 231          if ((end_offset - start_offset) <= 12)
 232                  return;
 233   
 234          s = tvb_bytes_to_str(
 235                  tvb, start_offset + 12, (end_offset - start_offset - 12) );
 236   
 237          /* Append string to COL_INFO */
 238   
 239          if (options & CB_STR_COL_INFO) {
 240                  if (check_col(pinfo->cinfo, COL_INFO))
 241                          col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", s);
 242          }
 243   
 244          /* Append string to upper-level proto_items */
 245   
 246          if (levels > 0 && item && s && s[0]) {
 247                  proto_item_append_text(item, ": %s", s);
 248                  item = item->parent;
 249                  levels--;
 250                  if (levels > 0) {
 251                          proto_item_append_text(item, ": %s", s);
 252                          item = item->parent;
 253                          levels--;
 254                          while (levels > 0) {
 255                                  proto_item_append_text(item, " %s", s);
 256                                  item = item->parent;
 257                                  levels--;
 258                          }
 259                  }
 260          }
 261  }
Show more  




Change Warning 5471.35697 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: