Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-dcerpc-rs_pgo.c:1034

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

dissect_rs_pgo_query_result_t

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-rs_pgo.c)expand/collapse
Show more  
 995  dissect_rs_pgo_query_result_t (tvbuff_t * tvb, int offset,
 996                                 packet_info * pinfo, proto_tree * parent_tree,
 997                                 guint8 * drep)
 998  {
 999    proto_item *item = NULL;
 1000    proto_tree *tree = NULL;
 1001    int old_offset = offset;
 1002    guint32 st;
 1003    dcerpc_info *di;
 1004    const char *status;
 1005  #define error_status_ok 0
 1006   
 1007    /*
 1008       typedef union switch (signed32 status) tagged_union {
 1009       case error_status_ok:
 1010       rs_pgo_result_t     result;
 1011   
 1012       default:
 1013       ;                      * empty branch of union *
 1014   
 1015       } rs_pgo_query_result_t;
 1016     */
 1017   
 1018    di = pinfo->private_data;
 1019    if (di->conformant_run)
 1020      {
 1021        return offset;
 1022      }
 1023   
 1024    if (parent_tree)
 1025      {
 1026        item = proto_tree_add_text (parent_tree, tvb, offset, -1,
 1027                                    "rs_pgo_query_result_t");
 1028        tree = proto_item_add_subtree (item, ett_rs_pgo_query_result_t);
 1029      }
 1030   
 1031    offset =
 1032      dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
 1033                          hf_rs_pgo_query_result_t, &st);
 1034    status = val_to_str (st, dce_error_vals, "%u");
 1035   
 1036    if (check_col (pinfo->cinfo, COL_INFO))
 1037      col_append_fstr (pinfo->cinfo, COL_INFO, " status:%s ", status);
 1038   
 1039    offset += 4;                  /* XXX */
 1040   
 1041    switch (st)
 1042      {
 1043      case error_status_ok:
 1044        offset = dissect_rs_pgo_result_t (tvb, offset, pinfo, tree, drep);
 1045        break;
 1046      default:
 1047        ;
 1048   
 1049      }
 1050   
 1051    proto_item_set_len (item, offset - old_offset);
 1052    return offset;
 1053  }
Show more  




Change Warning 12522.35705 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: