You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user