From: Zhang Chen Date: Thu, 18 Nov 2021 03:20:11 +0000 (+0800) Subject: net/colo-compare.c: Fix incorrect return when input wrong size X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0656fbc7ddccdade1709742a9b56ae07dd3c280a;p=qemu.git net/colo-compare.c: Fix incorrect return when input wrong size Signed-off-by: Zhang Chen Signed-off-by: Jason Wang --- diff --git a/net/colo-compare.c b/net/colo-compare.c index 1225f40e41..b966e7e514 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);