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

svcctl_dissect_OpenSCManager_reply

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-svcctl.c)expand/collapse
Show more  
 160  svcctl_dissect_OpenSCManager_reply(tvbuff_t *tvb, int offset,  
 161                                    packet_info *pinfo, proto_tree *tree,
 162                                    guint8 *drep)
 163  {
 164          dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
 165          dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
 166          e_ctx_hnd policy_hnd;
 167          proto_item *hnd_item;
 168          guint32 status;
 169   
 170          /* Parse packet */
 171   
 172          offset = dissect_nt_policy_hnd(
 173                  tvb, offset, pinfo, tree, drep, hf_svcctl_hnd, &policy_hnd,
 174[+]                 &hnd_item, TRUE, FALSE);
 175   
 176          offset = dissect_doserror(
 177[+]                 tvb, offset, pinfo, tree, drep, hf_svcctl_rc, &status);
 178   
 179          if( status == 0 ){
 180                  const char *pol_name;
 181   
 182                  if (dcv->se_data){
 183                          pol_name = ep_strdup_printf(
 184                                  "OpenSCManagerW(%s)", (char *)dcv->se_data);
 185                  } else {
 186                          pol_name = "Unknown OpenSCManagerW() handle";
 187                  }
 188                  if(!pinfo->fd->flags.visited){
 189[+]                         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 2171.34585 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: