diff mbox series

[2/2] net/colo-compare.c: Fix incorrect return when input wrong size

Message ID 20211118032011.249517-2-chen.zhang@intel.com (mailing list archive)
State New, archived
Headers show
Series [1/2] net/colo-compare.c: Fix ACK track reverse issue | expand

Commit Message

Zhang Chen Nov. 18, 2021, 3:20 a.m. UTC
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
---
 net/colo-compare.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jason Wang Nov. 19, 2021, 3:19 a.m. UTC | #1
在 2021/11/18 上午11:20, Zhang Chen 写道:
> Signed-off-by: Zhang Chen <chen.zhang@intel.com>
> ---


Applied.

Thanks


>   net/colo-compare.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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);
diff mbox series

Patch

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);