diff options
author | Zhang Chen <chen.zhang@intel.com> | 2021-11-18 11:20:11 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2021-11-19 11:44:22 +0800 |
commit | 0656fbc7ddccdade1709742a9b56ae07dd3c280a (patch) | |
tree | ed1c6aa4263238a89e963d9d48d1660db6ec7275 /net | |
parent | fb5eca4a571e303aafac7130abd66adc184aae72 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |