Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcerpc-spoolss.c:5680

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

SpoolssGetPrinterDriver2_q

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c)expand/collapse
Show more  
 5644  static int SpoolssGetPrinterDriver2_q(tvbuff_t *tvb, int offset,
 5645                                        packet_info *pinfo, proto_tree *tree,
 5646                                        guint8 *drep)
 5647  {
 5648          dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
 5649          dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
 5650          e_ctx_hnd policy_hnd;
 5651          char *pol_name;
 5652          guint32 level;
 5653   
 5654          /* Parse packet */
 5655   
 5656          offset = dissect_nt_policy_hnd(
 5657                  tvb, offset, pinfo, tree, drep, hf_hnd, &policy_hnd, NULL,
 5658                  FALSE, FALSE);
 5659   
 5660          dcerpc_fetch_polhnd_data(&policy_hnd, &pol_name, NULL, NULL, NULL,
 5661[+]                              pinfo->fd->num);
 5662   
 5663          if (check_col(pinfo->cinfo, COL_INFO) && pol_name)
 5664                  col_append_fstr(pinfo->cinfo, COL_INFO, ", %s",
 5665                                  pol_name);
 5666   
 5667          offset = dissect_ndr_str_pointer_item(
 5668                  tvb, offset, pinfo, tree, drep, NDR_POINTER_UNIQUE,
 5669                  "Architecture", hf_architecture, 0);
 5670   
 5671          offset = dissect_ndr_uint32(
 5672[+]                 tvb, offset, pinfo, tree, drep, hf_level, &level);
 5673   
 5674          /* GetPrinterDriver2() stores the level in se_data */
 5675          if(!pinfo->fd->flags.visited){
 5676                          dcv->se_data = GUINT_TO_POINTER((int)level);
 5677          }
 5678   
 5679          if (check_col(pinfo->cinfo, COL_INFO))
 5680                  col_append_fstr(pinfo->cinfo, COL_INFO, ", level %d", level);
Show more  




Change Warning 2148.35006 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: