(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ldap.c) |
| |
| 740 | | | static void ldap_do_protocolop(packet_info *pinfo) |
| 741 | | | { |
| 742 | | | const gchar* valstr; |
| 743 | | | |
| 744 | | | if (do_protocolop) { |
| 745 | | | |
| 746 | | | valstr = val_to_str(ProtocolOp, ldap_ProtocolOp_choice_vals, "Unknown (%%u)"); |
Ignored Return Value
The return value of val_to_str() 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 val_to_str() 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 val_to_str() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 747 | | | |
| 748 | | | if(check_col(pinfo->cinfo, COL_INFO)) |
Event 2:
Skipping " if". check_col(...) evaluates to false.
hide
|
|
| 749 | | | col_append_fstr(pinfo->cinfo, COL_INFO, "%s(%u) ", valstr, MessageID); |
| 750 | | | |
| 751 | | | if(ldm_tree) |
Event 3:
Skipping " if". ldm_tree evaluates to false.
hide
|
|
| 752 | | | proto_item_append_text(ldm_tree, " %s(%d)", valstr, MessageID); |
| 753 | | | |
| 754 | | | do_protocolop = FALSE; |
| 755 | | | |
| 756 | | | } |
| 757 | | | } |
| |