coverity 83662 test server check lseek return
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
8ab2b5af8b
commit
b17598bea2
1 changed files with 2 additions and 1 deletions
|
@ -394,7 +394,8 @@ static int callback_http(struct libwebsocket_context *context,
|
|||
*/
|
||||
if (m != n)
|
||||
/* partial write, adjust */
|
||||
lseek(pss->fd, m - n, SEEK_CUR);
|
||||
if (lseek(pss->fd, m - n, SEEK_CUR) < 0)
|
||||
goto bail;
|
||||
|
||||
if (m) /* while still active, extend timeout */
|
||||
libwebsocket_set_timeout(wsi,
|
||||
|
|
Loading…
Add table
Reference in a new issue