coverity 83658 test server check fstat return
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
24109f40ae
commit
d7b0a72953
1 changed files with 2 additions and 1 deletions
|
@ -212,7 +212,8 @@ static int callback_http(struct libwebsocket_context *context,
|
|||
if (pss->fd < 0)
|
||||
return -1;
|
||||
|
||||
fstat(pss->fd, &stat_buf);
|
||||
if (fstat(pss->fd, &stat_buf) < 0)
|
||||
return -1;
|
||||
|
||||
/*
|
||||
* we will send a big jpeg file, but it could be
|
||||
|
|
Loading…
Add table
Reference in a new issue