mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
coverity 83661 output check lseek return
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
b17598bea2
commit
7ef4b2e1f2
1 changed files with 2 additions and 1 deletions
|
@ -547,7 +547,8 @@ LWS_VISIBLE int libwebsockets_serve_http_file_fragment(
|
|||
|
||||
if (m != n)
|
||||
/* adjust for what was not sent */
|
||||
compatible_file_seek_cur(wsi->u.http.fd, m - n);
|
||||
if (compatible_file_seek_cur(wsi->u.http.fd, m - n) < 0)
|
||||
return -1;
|
||||
}
|
||||
all_sent:
|
||||
if (!wsi->truncated_send_len &&
|
||||
|
|
Loading…
Add table
Reference in a new issue