mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffserver: do not ignore getsockname() return
Should fix FFmpeg Coverity Scan issue #732176 Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
This commit is contained in:
parent
e79bc6a88a
commit
898192e029
@ -1759,7 +1759,10 @@ static int http_parse_request(HTTPContext *c)
|
||||
q += strlen(q);
|
||||
|
||||
len = sizeof(my_addr);
|
||||
getsockname(c->fd, (struct sockaddr *)&my_addr, &len);
|
||||
|
||||
/* XXX: Should probably fail? */
|
||||
if (getsockname(c->fd, (struct sockaddr *)&my_addr, &len))
|
||||
http_log("getsockname() failed\n");
|
||||
|
||||
/* XXX: should use a dynamic buffer */
|
||||
sdp_data_size = prepare_sdp_description(stream,
|
||||
|
Loading…
Reference in New Issue
Block a user