Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcom-cba-acco.c:1717

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

dissect_ICBAAccoServer_Disconnect_rqst

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c)expand/collapse
Show more  
 1661  dissect_ICBAAccoServer_Disconnect_rqst(tvbuff_t *tvb, int offset,
 1662          packet_info *pinfo, proto_tree *tree, guint8 *drep)
 1663  {
 1664          guint32 u32Count;
 1665          guint32 u32ArraySize;
 1666          guint32 u32Idx;
 1667          guint32 u32ProvID;
 1668          proto_item *item;
 1669      dcerpc_info *info = (dcerpc_info *)pinfo->private_data;
 1670      cba_ldev_t *prov_ldev;
 1671      cba_connection_t *conn;
 1672      server_connect_call_t *call;
 1673   
 1674   
 1675      offset = dissect_dcom_this(tvb, offset, pinfo, tree, drep);
 1676   
 1677      item = proto_tree_add_boolean (tree, hf_cba_acco_dcom_call, tvb, offset, 0, TRUE);
 1678      PROTO_ITEM_SET_GENERATED(item);
 1679      pinfo->profinet_type = 2;
 1680   
 1681          offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep,  
 1682[+]                         hf_cba_acco_count, &u32Count);
 1683   
 1684          offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep,  
 1685                          &u32ArraySize);
 1686   
 1687      prov_ldev = cba_ldev_find(pinfo, pinfo->net_dst.data, &info->call_data->object_uuid);
 1688   
 1689      /* link connection infos to the call */
 1690      if(prov_ldev != NULL) {
 1691          call = se_alloc(sizeof(server_connect_call_t) + u32ArraySize * sizeof(cba_connection_t *));
 1692          call->conn_count = 0;
 1693          call->frame = NULL;
 1694          call->conns = (cba_connection_t **) (call+1);
 1695          info->call_data->private_data = call;
 1696      } else{
 1697          call = NULL;
 1698      }
 1699   
 1700          u32Idx = 1;
 1701          while (u32ArraySize--) {
 1702                  offset = dissect_dcom_indexed_DWORD(tvb, offset, pinfo, tree, drep,  
 1703                                                  hf_cba_acco_conn_prov_id, &u32ProvID, u32Idx);
 1704   
 1705          /* add to current call */
 1706          if(call != NULL) {
 1707              conn = cba_connection_find_by_provid(tvb, pinfo, tree, prov_ldev, u32ProvID);
 1708              call->conn_count++;
 1709              call->conns[u32Idx-1] = conn;
 1710          }
 1711   
 1712                  u32Idx++;
 1713          }
 1714   
 1715          /* update column info now */
 1716      if (check_col(pinfo->cinfo, COL_INFO)) {
 1717                  col_append_fstr(pinfo->cinfo, COL_INFO, ": Cnt=%u", u32Count);
Show more  




Change Warning 3803.35091 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: