(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-nlm.c) |
| |
| 420 | | | dissect_nlm_test(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 421 | | | proto_tree *tree, int version) |
| 422 | | | { |
| 423 | | | if(nlm_match_msgres){ |
| 424 | | | rpc_call_info_value *rpc_call=pinfo->private_data; |
| 425 | | | if(rpc_call->proc==6){ |
| 426 | | | if( (!pinfo->fd->flags.visited) ){ |
| 427 | | | nlm_register_unmatched_msg(pinfo, tvb, offset); |
| 428 | | | } else { |
| 429 | | | nlm_print_msgres_request(pinfo, tree, tvb); |
| 430 | | | } |
| 431 | | | |
| 432 | | | |
| 433 | | | if(nfs_fhandle_reqrep_matching){ |
| 434 | | | nlm_match_fhandle_request(pinfo, tree); |
| 435 | | | } |
| 436 | | | } |
| 437 | | | } |
| 438 | | | |
| 439 | | | offset = dissect_rpc_data(tvb, tree, hf_nlm_cookie, offset); |
| 440 | | | dissect_rpc_bool(tvb, tree, hf_nlm_exclusive, offset); |
Ignored Return Value
The return value of dissect_rpc_bool() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- The return value of dissect_rpc_bool() is checked 98% of the time in this project. CodeSonar is configured to enforce Ignored Return Value checks for any function whose return value is checked at least 96% of the time, unless the function is used fewer than 20 times. (To modify these thresholds, use configuration file parameters RETURN_CHECKER_SAMPLE_SIZE and RETURN_CHECKER_RATIO. To exempt dissect_rpc_bool() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 441 | | | offset += 4; |
| 442 | | | offset = dissect_lock(tvb, pinfo, tree, version, offset); |
| 443 | | | return offset; |
| 444 | | | } |
| |