Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcerpc-nt.c:428

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

SpoolssReplyOpenPrinter_r

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c)expand/collapse
Show more  
 3221  static int SpoolssReplyOpenPrinter_r(tvbuff_t *tvb, int offset,
 3222                                       packet_info *pinfo, proto_tree *tree,
 3223                                       guint8 *drep _U_)
 3224  {
 3225          dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
 3226          dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
 3227          e_ctx_hnd policy_hnd;
 3228          proto_item *hnd_item;
 3229          guint32 status;
 3230   
 3231          /* Parse packet */
 3232   
 3233          offset = dissect_nt_policy_hnd(
 3234                  tvb, offset, pinfo, tree, drep, hf_hnd, &policy_hnd, &hnd_item,
 3235[+]                 TRUE, FALSE);
 3236           
 3237          offset = dissect_doserror(
 3238[+]                 tvb, offset, pinfo, tree, drep, hf_rc, &status);
 3239   
 3240          if( status == 0 ){
 3241                  const char *pol_name;
 3242   
 3243                  if (dcv->se_data){
 3244                          pol_name = ep_strdup_printf(
 3245                                  "ReplyOpenPrinter(%s)", (char *)dcv->se_data);
 3246                  } else {
 3247                          pol_name = "Unknown ReplyOpenPrinter() handle";
 3248                  }
 3249                  if(!pinfo->fd->flags.visited){
 3250[+]                         dcerpc_store_polhnd_name(&policy_hnd, pinfo, pol_name);
expand/collapse

dcerpc_store_polhnd_name

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-nt.c)expand/collapse
Show more  
 643  void dcerpc_store_polhnd_name(e_ctx_hnd *policy_hnd, packet_info *pinfo,
 644                                 const char *name)
 645  {
 646          pol_hash_value *value;
 647          pol_value *pol;
 648   
 649          /*
 650           * By the time the first pass is done, the policy handle database
 651           * has been completely constructed.  If we've already seen this 
 652           * frame, there's nothing to do.
 653           */
 654          if (pinfo->fd->flags.visited)
 655                  return;
 656   
 657[+]         if (is_null_pol(policy_hnd))
expand/collapse

is_null_pol

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-nt.c)expand/collapse
Show more  
 424  static gboolean is_null_pol(e_ctx_hnd *policy_hnd)
 425  {
 426          static guint8 null_policy_hnd[20];
 427   
 428          return memcmp(policy_hnd, null_policy_hnd, 20) == 0;
Show more  
Show more  
Show more  




Change Warning 2113.34568 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: