aboutsummaryrefslogtreecommitdiff
path: root/net/colo.c
diff options
context:
space:
mode:
authorZhang Chen <chen.zhang@intel.com>2022-04-01 11:47:01 +0800
committerJason Wang <jasowang@redhat.com>2022-07-20 16:58:08 +0800
commit94c36c48751bf5ff644e6c8e17a21003edacfc5d (patch)
tree1b546417dd9243af48108327e0e9a074ada4ef2c /net/colo.c
parenta18d436954c534b74ed57fc126bb737247d22cba (diff)
downloadqemu-94c36c48751bf5ff644e6c8e17a21003edacfc5d.zip
qemu-94c36c48751bf5ff644e6c8e17a21003edacfc5d.tar.gz
qemu-94c36c48751bf5ff644e6c8e17a21003edacfc5d.tar.bz2
net/colo.c: No need to track conn_list for filter-rewriter
Filter-rewriter no need to track connection in conn_list. This patch fix the glib g_queue_is_empty assertion when COLO guest keep a lot of network connection. Signed-off-by: Zhang Chen <chen.zhang@intel.com> Reviewed-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/colo.c')
-rw-r--r--net/colo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/colo.c b/net/colo.c
index 1f8162f..694f3c9 100644
--- a/net/colo.c
+++ b/net/colo.c
@@ -218,7 +218,7 @@ Connection *connection_get(GHashTable *connection_track_table,
/*
* clear the conn_list
*/
- while (!g_queue_is_empty(conn_list)) {
+ while (conn_list && !g_queue_is_empty(conn_list)) {
connection_destroy(g_queue_pop_head(conn_list));
}
}