mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06: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:
parent
fb5eca4a57
commit
0656fbc7dd
1 changed files with 1 additions and 1 deletions
|
@ -807,7 +807,7 @@ static int compare_chr_send(CompareState *s,
|
|||
}
|
||||
|
||||
if (!size) {
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
entry = g_slice_new(SendEntry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue