From 4d366235208e58a7bc854b893a671d4b2d9c7a94 Mon Sep 17 00:00:00 2001 From: Mao Zhongyi Date: Thu, 16 Nov 2017 10:28:32 +0800 Subject: colo-compare: fix the dangerous assignment Cc: Peter Maydell Cc: Jason Wang Cc: Zhang Chen Cc: Li Zhijian Cc: Paolo Bonzini Fixes: 8ec14402029d783720f4312ed8a925548e1dad61 Reported-by: Peter Maydell Reported-by: Paolo Bonzini Signed-off-by: Mao Zhongyi Reviewed-by: Darren Kenny Signed-off-by: Jason Wang --- net/colo-compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/colo-compare.c') diff --git a/net/colo-compare.c b/net/colo-compare.c index ccdcba2691..1ce195f877 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -179,7 +179,7 @@ static int packet_enqueue(CompareState *s, int mode, Connection **con) "drop packet"); } } - con = &conn; + *con = conn; return 0; } -- cgit v1.2.3