1
0
Fork 0
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:
Andy Green 2014-11-30 13:00:47 +08:00
parent b17598bea2
commit 7ef4b2e1f2

View file

@ -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 &&