summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMao Zhongyi2017-11-16 03:28:32 +0100
committerJason Wang2017-11-20 04:08:00 +0100
commit4d366235208e58a7bc854b893a671d4b2d9c7a94 (patch)
tree698552ff86f8c4b03ab5758ca72094070b8ed61e /net
parentMerge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff)
downloadqemu-4d366235208e58a7bc854b893a671d4b2d9c7a94.tar.gz
qemu-4d366235208e58a7bc854b893a671d4b2d9c7a94.tar.xz
qemu-4d366235208e58a7bc854b893a671d4b2d9c7a94.zip
colo-compare: fix the dangerous assignment
Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Jason Wang <jasowang@redhat.com> Cc: Zhang Chen <zhangckid@gmail.com> Cc: Li Zhijian <lizhijian@cn.fujitsu.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Fixes: 8ec14402029d783720f4312ed8a925548e1dad61 Reported-by: Peter Maydell <peter.maydell@linaro.org> Reported-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com> Reviewed-by: Darren Kenny <darren.kenny@oracle.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/colo-compare.c2
1 files changed, 1 insertions, 1 deletions
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;
}