aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorZhang Chen <chen.zhang@intel.com>2021-11-18 11:20:11 +0800
committerJason Wang <jasowang@redhat.com>2021-11-19 11:44:22 +0800
commit0656fbc7ddccdade1709742a9b56ae07dd3c280a (patch)
treeed1c6aa4263238a89e963d9d48d1660db6ec7275 /net
parentfb5eca4a571e303aafac7130abd66adc184aae72 (diff)
downloadqemu-0656fbc7ddccdade1709742a9b56ae07dd3c280a.zip
qemu-0656fbc7ddccdade1709742a9b56ae07dd3c280a.tar.gz
qemu-0656fbc7ddccdade1709742a9b56ae07dd3c280a.tar.bz2
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>
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 1225f40..b966e7e 100644
--- a/net/colo-compare.c
+++ b/net/colo-compare.c
@@ -807,7 +807,7 @@ static int compare_chr_send(CompareState *s,
}
if (!size) {
- return 0;
+ return -1;
}
entry = g_slice_new(SendEntry);