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:
Zhang Chen 2021-11-18 11:20:11 +08:00 committed by Jason Wang
parent fb5eca4a57
commit 0656fbc7dd

View File

@ -807,7 +807,7 @@ static int compare_chr_send(CompareState *s,
}
if (!size) {
return 0;
return -1;
}
entry = g_slice_new(SendEntry);