Skip to content

Commit

Permalink
colo-compare: fix the dangerous assignment
Browse files Browse the repository at this point in the history
Cc: Peter Maydell <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Zhang Chen <[email protected]>
Cc: Li Zhijian <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Fixes: 8ec1440
Reported-by: Peter Maydell <[email protected]>
Reported-by: Paolo Bonzini <[email protected]>
Signed-off-by: Mao Zhongyi <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
  • Loading branch information
Mao Zhongyi authored and jasowang committed Nov 20, 2017
1 parent 2e02083 commit 4d36623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/colo-compare.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static int packet_enqueue(CompareState *s, int mode, Connection **con)
"drop packet");
}
}
con = &conn;
*con = conn;

return 0;
}
Expand Down

0 comments on commit 4d36623

Please sign in to comment.