aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2024-08-28 09:36:11 +0200
committerFlorin Coras <florin.coras@gmail.com>2024-08-28 15:41:26 +0000
commit61409d2df6128719630e2913378676021f1d393d (patch)
treedc1fb2033178a042231158eb1e3ee64da5cd9adb
parentdac6888244bcc9ee3d90f867ac62c7b2fdc1445b (diff)
hsa: http_cli coverity fix
Type: fix Change-Id: I23c55e6be08cc02332da9375d2eb19b74b79427c Signed-off-by: Matus Fabian <matfabia@cisco.com>
-rw-r--r--src/plugins/hs_apps/http_cli.c2
1 files changed, 1 insertions, 1 deletions
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