(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/sctp_assoc_analyse.c) |
| |
| 789 | | | void assoc_analyse(sctp_assoc_info_t* assoc) |
| 790 | | | { |
| 791 | | | struct sctp_analyse* u_data; |
| 792 | | | int i; |
| 793 | | | |
| 794 | | | u_data = g_malloc(sizeof(struct sctp_analyse)); |
| 795 | | | u_data->assoc = assoc; |
| 796 | | | u_data->assoc->addr_chunk_count = assoc->addr_chunk_count; |
| 797 | | | u_data->window = NULL; |
| 798 | | | u_data->analyse_nb = NULL; |
| 799 | | | u_data->children = NULL; |
| 800 | | | u_data->num_children = 0; |
| 801 | | | static_assoc.addr_chunk_count =assoc->addr_chunk_count; |
| 802 | | | static_assoc.port1 = assoc->port1; |
| 803 | | | static_assoc.port2 = assoc->port2; |
| 804 | | | for (i=0; i<NUM_CHUNKS; i++) |
| 805 | | | { |
| 806 | | | static_assoc.chunk_count[i] = assoc->chunk_count[i]; |
| 807 | | | static_assoc.ep1_chunk_count[i] = assoc->ep1_chunk_count[i]; |
| 808 | | | static_assoc.ep2_chunk_count[i] = assoc->ep2_chunk_count[i]; |
| 809 | | | } |
| 810 | | | set_analyse_child(u_data); |
| 811 | | | increase_analyse_childcount(); |
| 812 | | | static_assoc.addr_chunk_count = assoc->addr_chunk_count; |
Useless Assignment
This code assigns the variable the same value it already had. |
|
| 813 | | | create_analyse_window(u_data); |
| 814 | | | } |
| |