Text   |  XML   |  ReML   |   Visible Warnings:

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

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

dissect_ICBAAccoServerSRT_DisconnectCR_rqst

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/profinet/packet-dcom-cba-acco.c)expand/collapse
Show more  
 2367  dissect_ICBAAccoServerSRT_DisconnectCR_rqst(tvbuff_t *tvb, int offset,
 2368          packet_info *pinfo, proto_tree *tree, guint8 *drep)
 2369  {
 2370          guint32 u32Count;
 2371          guint32 u32ArraySize;
 2372          guint32 u32Idx;
 2373          guint32 u32ProvCRID;
 2374          proto_item *item;
 2375      dcerpc_info *info = (dcerpc_info *)pinfo->private_data;
 2376      cba_ldev_t *prov_ldev;
 2377      cba_frame_t *frame;
 2378      server_frame_call_t *call;
 2379   
 2380   
 2381      offset = dissect_dcom_this(tvb, offset, pinfo, tree, drep);
 2382   
 2383      /* get corresponding provider ldev */
 2384      prov_ldev = cba_ldev_find(pinfo, pinfo->net_dst.data, &info->call_data->object_uuid);
 2385   
 2386      item = proto_tree_add_boolean (tree, hf_cba_acco_srt_call, tvb, offset, 0, TRUE);
 2387      PROTO_ITEM_SET_GENERATED(item);
 2388      pinfo->profinet_type = 4;
 2389   
 2390          offset = dissect_dcom_DWORD(tvb, offset, pinfo, tree, drep,  
 2391                          hf_cba_acco_count, &u32Count);
 2392   
 2393          offset = dissect_dcom_dcerpc_array_size(tvb, offset, pinfo, tree, drep,  
 2394[+]                         &u32ArraySize);
 2395   
 2396      /* link frame infos to the call */
 2397      if(prov_ldev != NULL) {
 2398          call = se_alloc(sizeof(server_frame_call_t) + u32ArraySize * sizeof(cba_frame_t *));
 2399          call->frame_count = 0;
 2400          call->frames = (cba_frame_t **) (call+1);
 2401          info->call_data->private_data = call;
 2402      } else{
 2403          call = NULL;
 2404      }
 2405   
 2406          u32Idx = 1;
 2407          while (u32ArraySize--) {
 2408                  offset = dissect_dcom_indexed_DWORD(tvb, offset, pinfo, tree, drep,  
 2409                                                  hf_cba_acco_prov_crid, &u32ProvCRID, u32Idx);
 2410   
 2411          /* find frame and add it to current call */
 2412          if(call != NULL) {
 2413              frame = cba_frame_find_by_provcrid(pinfo, prov_ldev, u32ProvCRID);
 2414              call->frame_count++;
 2415              call->frames[u32Idx-1] = frame;
 2416          }
 2417   
 2418                  u32Idx++;
 2419          }
 2420   
 2421          /* update column info now */
 2422      if (check_col(pinfo->cinfo, COL_INFO)) {
 2423                  col_append_fstr(pinfo->cinfo, COL_INFO, ": PCRID=0x%x",
 2424              u32ProvCRID);
Show more  




Change Warning 3814.35101 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: