mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
net/colo-compare.c: Fix incorrect return when input wrong size
Signed-off-by: Zhang Chen <chen.zhang@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
@ -807,7 +807,7 @@ static int compare_chr_send(CompareState *s,
|
||||
}
|
||||
|
||||
if (!size) {
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
entry = g_slice_new(SendEntry);
|
||||
|
Reference in New Issue
Block a user