Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-dcerpc-spoolss.c:2621

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

SpoolssOpenPrinterEx_r

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c)expand/collapse
Show more  
 2597  static int SpoolssOpenPrinterEx_r(tvbuff_t *tvb, int offset,
 2598                                    packet_info *pinfo, proto_tree *tree,
 2599                                    guint8 *drep _U_)
 2600  {
 2601          dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
 2602          dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
 2603          e_ctx_hnd policy_hnd;
 2604          proto_item *hnd_item;
 2605          guint32 status;
 2606   
 2607          /* Parse packet */
 2608   
 2609          offset = dissect_nt_policy_hnd(
 2610                  tvb, offset, pinfo, tree, drep, hf_hnd, &policy_hnd, &hnd_item,
 2611                  TRUE, FALSE);
 2612   
 2613          offset = dissect_doserror(
 2614                  tvb, offset, pinfo, tree, drep, hf_rc, &status);
 2615   
 2616          if( status == 0 ){
 2617                  const char *pol_name;
 2618   
 2619                  if (dcv->se_data){
 2620                          pol_name = ep_strdup_printf(
 2621                                  "OpenPrinterEx(%s)", (char *)dcv->se_data);
 2622                  } else {
 2623                          pol_name = "Unknown OpenPrinterEx() handle";
 2624                  }
 2625                  if(!pinfo->fd->flags.visited){
 2626                          dcerpc_store_polhnd_name(&policy_hnd, pinfo, pol_name);
 2627                  }
 2628   
 2629                  if(hnd_item)
 2630                          proto_item_append_text(hnd_item, ": %s", pol_name);
 2631          }
 2632   
 2633          return offset;
 2634  }
Show more  




Change Warning 5438.35657 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: