Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
5682ca8
)
http_static: fix coverity warning
50/41250/7
author
Matus Fabian
<
[email protected]
>
Tue, 9 Jul 2024 13:23:45 +0000
(15:23 +0200)
committer
Matus Fabian
<
[email protected]
>
Wed, 24 Jul 2024 08:16:47 +0000
(10:16 +0200)
Type: fix
Change-Id: Ie4af8ec0c6089b5719899f3d0b670f8a2de7f8a2
Signed-off-by: Matus Fabian <
[email protected]
>
src/plugins/http_static/static_server.c
patch
|
blob
|
history
diff --git
a/src/plugins/http_static/static_server.c
b/src/plugins/http_static/static_server.c
index
bc18875
..
d987a3e
100644
(file)
--- 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);
}