(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-h460.c) |
| |
| 2994 | | | void proto_reg_handoff_h460(void) |
| 2995 | | | { |
| 2996 | | | h460_feature_t *ftr; |
| 2997 | | | dissector_handle_t h460_name_handle; |
| 2998 | | | |
| 2999 | | | q931_ie_handle = find_dissector("q931.ie"); |
| 3000 | | | h225_ras_handle = find_dissector("h225.ras"); |
| 3001 | | | |
| 3002 | | | h460_name_handle = new_create_dissector_handle(dissect_h460_name, proto_h460); |
Ignored Return Value
The return value of new_create_dissector_handle() 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 new_create_dissector_handle() is checked 100% 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 new_create_dissector_handle() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 3003 | | | for (ftr=h460_feature_tab; ftr->id; ftr++) { |
| 3004 | | | if (ftr->key_gd) dissector_add_string("h225.gef.name", ftr->key_gd, h460_name_handle); |
| 3005 | | | if (ftr->key_fd) dissector_add_string("h225.gef.name", ftr->key_fd, h460_name_handle); |
| 3006 | | | if (ftr->key_gm) dissector_add_string("h245.gef.name", ftr->key_gm, h460_name_handle); |
| 3007 | | | if (ftr->key_gi) dissector_add_string("h245.gef.name", ftr->key_gi, h460_name_handle); |
| 3008 | | | if (ftr->content_hnd) { |
| 3009 | | | if (ftr->key_gd) dissector_add_string("h225.gef.content", ftr->key_gd, ftr->content_hnd); |
| 3010 | | | if (ftr->key_fd) dissector_add_string("h225.gef.content", ftr->key_fd, ftr->content_hnd); |
| 3011 | | | if (ftr->key_gm) dissector_add_string("h245.gef.content", ftr->key_gm, ftr->content_hnd); |
| 3012 | | | if (ftr->key_gi) dissector_add_string("h245.gef.content", ftr->key_gi, ftr->content_hnd); |
| 3013 | | | } |
| 3014 | | | } |
| 3015 | | | |
| 3016 | | | } |
| |