From 61409d2df6128719630e2913378676021f1d393d Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Wed, 28 Aug 2024 09:36:11 +0200 Subject: [PATCH] hsa: http_cli coverity fix Type: fix Change-Id: I23c55e6be08cc02332da9375d2eb19b74b79427c Signed-off-by: Matus Fabian --- src/plugins/hs_apps/http_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/hs_apps/http_cli.c b/src/plugins/hs_apps/http_cli.c index 814f5f15fcf..17624b3e827 100644 --- a/src/plugins/hs_apps/http_cli.c +++ b/src/plugins/hs_apps/http_cli.c @@ -196,7 +196,7 @@ start_send_data (hcs_session_t *hs, http_status_code_t status) if (rv != vec_len (hs->tx_buf)) { - hs->tx_offset = rv; + hs->tx_offset = (rv > 0) ? rv : 0; svm_fifo_add_want_deq_ntf (ts->tx_fifo, SVM_FIFO_WANT_DEQ_NOTIF); } else