diff --git a/net/colo-compare.c b/net/colo-compare.c index 2e819ffedb78431adf0d916f52cd0a42686ef099..9d1ad99941d3fe35fbca221e142866683a0a5bcd 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -691,7 +691,7 @@ static void colo_compare_packet(CompareState *s, Connection *conn, if (result) { colo_release_primary_pkt(s, pkt); packet_destroy(result->data, NULL); - g_queue_remove(&conn->secondary_list, result->data); + g_queue_delete_link(&conn->secondary_list, result); } else { /* * If one packet arrive late, the secondary_list or