(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/flow_graph.c) |
| |
| 403 | | | flow_graph_on_ok (GtkButton *button _U_, |
| 404 | | | gpointer user_data) |
| 405 | | | { |
| 406 | | | |
| 407 | | | if ((have_frame_tap_listener==TRUE) |
| 408 | | | ||(have_tcp_tap_listener==TRUE)) |
| 409 | | | { |
| 410 | | | |
| 411 | | | remove_tap_listener_flow_graph(); |
| 412 | | | } |
| 413 | | | |
| 414 | | | |
| 415 | | | |
| 416 | | | if (type_of_flow == GENERAL){ |
| 417 | | | |
| 418 | | | |
| 419 | | | if(have_frame_tap_listener==FALSE) |
| 420 | | | { |
| 421 | | | |
| 422 | | | register_tap_listener("frame", &tap_identifier, NULL, |
| 423 | | | flow_graph_reset, |
| 424 | | | flow_graph_frame_packet, |
| 425 | | | flow_graph_packet_draw |
| 426 | | | ); |
| 427 | | | have_frame_tap_listener=TRUE; |
| 428 | | | } |
| 429 | | | |
| 430 | | | cf_retap_packets(&cfile, TRUE); |
| 431 | | | } |
| 432 | | | else if (type_of_flow == TCP){ |
| 433 | | | |
| 434 | | | |
| 435 | | | if(have_tcp_tap_listener==FALSE) |
| 436 | | | { |
| 437 | | | |
| 438 | | | register_tap_listener("tcp", &tap_identifier, NULL, |
| 439 | | | flow_graph_reset, |
| 440 | | | flow_graph_tcp_packet, |
| 441 | | | flow_graph_packet_draw |
| 442 | | | ); |
Ignored Return Value
The return value of register_tap_listener() 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 register_tap_listener() 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 register_tap_listener() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 443 | | | have_tcp_tap_listener=TRUE; |
Event 2:
!0 evaluates to true.
hide
|
|
| 444 | | | } |
| 445 | | | |
| 446 | | | cf_retap_packets(&cfile, FALSE); |
| 447 | | | } |
| 448 | | | |
| 449 | | | if (graph_analysis_data->dlg.window != NULL){ |
Event 3:
Taking false branch. graph_analysis_data->dlg.window != (void *)0 evaluates to false.
hide
|
|
| 450 | | | graph_analysis_update(graph_analysis_data); |
| 451 | | | } |
| 452 | | | else{ |
| 453 | | | graph_analysis_data->dlg.parent_w = user_data; |
| 454 | | | graph_analysis_create(graph_analysis_data); |
| 455 | | | } |
| 456 | | | |
| 457 | | | } |
| |