summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2024-07-09 15:23:45 +0200
committerMatus Fabian <matfabia@cisco.com>2024-07-24 10:16:47 +0200
commit936c83db957805dec91b70379780241f0c75a3f6 (patch)
treec5ca142d9a6553230afeb750e1e66cd8d2ace259 /src/plugins
parent5682ca8ef613d47ed51bbd97b3df94d2f91bf290 (diff)
http_static: fix coverity warning
Type: fix Change-Id: Ie4af8ec0c6089b5719899f3d0b670f8a2de7f8a2 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/http_static/static_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c
index bc18875626e..d987a3eb7fb 100644
--- a/src/plugins/http_static/static_server.c
+++ b/src/plugins/http_static/static_server.c
@@ -151,7 +151,7 @@ start_send_data (hss_session_t *hs, http_status_code_t status)
if (rv != hs->data_len)
{
- hs->data_offset = rv;
+ hs->data_offset = (rv > 0) ? rv : 0;
svm_fifo_add_want_deq_ntf (ts->tx_fifo, SVM_FIFO_WANT_DEQ_NOTIF);
}