diff options
author | Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> | 2014-04-28 13:45:34 -0400 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> | 2014-04-28 23:54:58 -0400 |
commit | e79bc6a88aab8cd85c55461942a421e36a44f5ea (patch) | |
tree | 6a85c283796846c0766cb47b5f2615b985f97edd | |
parent | 8baa5b32a59c9426142cd602aff7aacbb4a3bf7c (diff) | |
download | ffmpeg-e79bc6a88aab8cd85c55461942a421e36a44f5ea.tar.gz |
ffserver: do not ignore send() return
Should fix Coverity Scan issue #732178
Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
-rw-r--r-- | ffserver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index 1d32892340..20900fb44e 100644 --- a/ffserver.c +++ b/ffserver.c @@ -811,7 +811,8 @@ static void http_send_too_busy_reply(int fd) "</body></html>\r\n", nb_connections, nb_max_connections); av_assert0(len < sizeof(buffer)); - send(fd, buffer, len, 0); + if (send(fd, buffer, len, 0) < len) + av_log(NULL, AV_LOG_WARNING, "Could not send too-busy reply, send() failed\n"); } |