aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>2017-11-16 10:28:32 +0800
committerJason Wang <jasowang@redhat.com>2017-11-20 11:08:00 +0800
commit4d366235208e58a7bc854b893a671d4b2d9c7a94 (patch)
tree698552ff86f8c4b03ab5758ca72094070b8ed61e /net
parent2e02083438962d26ef9dcc7100f3b378104183db (diff)
downloadqemu-4d366235208e58a7bc854b893a671d4b2d9c7a94.zip
qemu-4d366235208e58a7bc854b893a671d4b2d9c7a94.tar.gz
qemu-4d366235208e58a7bc854b893a671d4b2d9c7a94.tar.bz2
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 ccdcba2..1ce195f 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;
}