diff options
author | Mao Zhongyi <maozy.fnst@cn.fujitsu.com> | 2017-11-16 10:28:32 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2017-11-20 11:08:00 +0800 |
commit | 4d366235208e58a7bc854b893a671d4b2d9c7a94 (patch) | |
tree | 698552ff86f8c4b03ab5758ca72094070b8ed61e /net | |
parent | 2e02083438962d26ef9dcc7100f3b378104183db (diff) |
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.c | 2 |
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; } |