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
|
@ -807,7 +807,7 @@ static int compare_chr_send(CompareState *s,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!size) {
|
if (!size) {
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
entry = g_slice_new(SendEntry);
|
entry = g_slice_new(SendEntry);
|
||||||
|
|
Loading…
Reference in New Issue