Text   |  XML   |  ReML   |   Visible Warnings:

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

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);
 3251                  }
 3252   
 3253                  if(hnd_item)
 3254                          proto_item_append_text(hnd_item, ": %s", pol_name);
 3255          }
 3256   
 3257          return offset;
 3258  }
Show more  




Change Warning 5437.35656 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: