summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Zhijian2020-10-16 07:52:03 +0200
committerJason Wang2020-11-11 09:52:23 +0100
commit862ee1e07e9d4dc97263fc919cb76364a2b6d193 (patch)
treebb65dad4a90845592368060d515e0bfd10296edb
parentFix the qemu crash when guest shutdown in COLO mode (diff)
downloadqemu-862ee1e07e9d4dc97263fc919cb76364a2b6d193.tar.gz
qemu-862ee1e07e9d4dc97263fc919cb76364a2b6d193.tar.xz
qemu-862ee1e07e9d4dc97263fc919cb76364a2b6d193.zip
colo-compare: fix missing compare_seq initialization
Fixes: f449c9e549c ("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>
-rw-r--r--net/colo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/colo.c b/net/colo.c
index a6c66d829a..ef00609848 100644
--- a/net/colo.c
+++ b/net/colo.c
@@ -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);