Text   |  XML   |  ReML   |   Visible Warnings:

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

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

SpoolssSetPrinterData_q

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c)expand/collapse
Show more  
 872  static int SpoolssSetPrinterData_q(tvbuff_t *tvb, int offset,
 873                                     packet_info *pinfo, proto_tree *tree,
 874                                     guint8 *drep _U_)
 875  {
 876          dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
 877          dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
 878          char *value_name;
 879          guint32 type;
 880          proto_item *hidden_item;
 881   
 882          hidden_item = proto_tree_add_uint(
 883                  tree, hf_printerdata, tvb, offset, 0, 1);
 884          PROTO_ITEM_SET_HIDDEN(hidden_item);
 885   
 886          /* Parse packet */
 887   
 888          offset = dissect_nt_policy_hnd(
 889                  tvb, offset, pinfo, tree, drep, hf_hnd, NULL, NULL,
 890                  FALSE, FALSE);
 891   
 892          value_name=NULL;
 893          offset = dissect_ndr_cvstring(
 894                  tvb, offset, pinfo, tree, drep, sizeof(guint16),
 895                  hf_printerdata_value, TRUE, &value_name);
 896   
 897          /* GetPrinterDataEx() stores the key/value in se_data */
 898          if(!pinfo->fd->flags.visited){
 899                  if(!dcv->se_data){
 900                          dcv->se_data = se_strdup_printf("%s",
 901                                  value_name?value_name:"");
 902                  }
 903          }
 904   
 905   
 906[+]         if (check_col(pinfo->cinfo, COL_INFO) && dcv->se_data){
 907                  col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", (char *)dcv->se_data);
 908          }
 909   
 910          offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
 911[+]                                     hf_printerdata_type, &type);
 912   
 913          offset = dissect_printerdata_data(
 914                  tvb, offset, pinfo, tree, drep, type);
Show more  




Change Warning 2091.34560 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: