mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
colo-compare: fix missing compare_seq initialization
Fixes: f449c9e549
("colo: compare the packet based on the tcp sequence
number")
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
5647051f43
commit
862ee1e07e
1 changed files with 1 additions and 4 deletions
|
@ -133,14 +133,11 @@ void reverse_connection_key(ConnectionKey *key)
|
|||
|
||||
Connection *connection_new(ConnectionKey *key)
|
||||
{
|
||||
Connection *conn = g_slice_new(Connection);
|
||||
Connection *conn = g_slice_new0(Connection);
|
||||
|
||||
conn->ip_proto = key->ip_proto;
|
||||
conn->processing = false;
|
||||
conn->offset = 0;
|
||||
conn->tcp_state = TCPS_CLOSED;
|
||||
conn->pack = 0;
|
||||
conn->sack = 0;
|
||||
g_queue_init(&conn->primary_list);
|
||||
g_queue_init(&conn->secondary_list);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue