(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-svcctl.c) |
| |
| 246 | | | svcctl_dissect_OpenSCManagerW_reply(tvbuff_t *tvb, int offset, |
| 247 | | | packet_info *pinfo, proto_tree *tree, |
| 248 | | | guint8 *drep) |
| 249 | | | { |
| 250 | | | dcerpc_info *di = (dcerpc_info *)pinfo->private_data; |
| 251 | | | dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; |
| 252 | | | e_ctx_hnd policy_hnd; |
| 253 | | | proto_item *hnd_item; |
| 254 | | | guint32 status; |
| 255 | | | |
| 256 | | | |
| 257 | | | |
| 258 | | | offset = dissect_nt_policy_hnd( |
| 259 | | | tvb, offset, pinfo, tree, drep, hf_svcctl_hnd, &policy_hnd, |
| 260 | [+] | | &hnd_item, TRUE, FALSE); |
Event 1:
!0 evaluates to true.
hide
Event 2:
dissect_nt_policy_hnd() does not initialize policy_hnd. - This may be because of a failure case or other special case for dissect_nt_policy_hnd().
hide
|
|
 |
| 261 | | | |
| 262 | | | offset = dissect_doserror( |
| 263 | [+] | | tvb, offset, pinfo, tree, drep, hf_svcctl_rc, &status); |
 |
| 264 | | | |
| 265 | | | if( status == 0 ){ |
Event 7:
Taking true branch. status == 0 evaluates to true.
hide
|
|
| 266 | | | const char *pol_name; |
| 267 | | | |
| 268 | | | if (dcv->se_data){ |
Event 8:
Taking false branch. dcv->se_data evaluates to false.
hide
|
|
| 269 | | | pol_name = ep_strdup_printf( |
| 270 | | | "OpenSCManagerW(%s)", (char *)dcv->se_data); |
| 271 | | | } else { |
| 272 | | | pol_name = "Unknown OpenSCManagerW() handle"; |
| 273 | | | } |
| 274 | | | if(!pinfo->fd->flags.visited){ |
Event 9:
Taking true branch. pinfo->fd->flags.visited evaluates to false.
hide
|
|
| 275 | [+] | | dcerpc_store_polhnd_name(&policy_hnd, pinfo, pol_name); |
Event 10:
&policy_hnd is passed to dcerpc_store_polhnd_name() as the first argument.
hide
Event 11:
dcerpc_store_polhnd_name() does not initialize policy_hnd. - This may be because of a failure case or other special case for dcerpc_store_polhnd_name().
hide
|
|
 |
| |