rtsp: check ffurl_get_file_handle() return value
CC: libav-stable@libav.org Bug-Id: CID 717844
This commit is contained in:
parent
b1306823d0
commit
76ccf114a6
@ -1751,6 +1751,10 @@ redirect:
|
|||||||
rt->seq = 0;
|
rt->seq = 0;
|
||||||
|
|
||||||
tcp_fd = ffurl_get_file_handle(rt->rtsp_hd);
|
tcp_fd = ffurl_get_file_handle(rt->rtsp_hd);
|
||||||
|
if (tcp_fd < 0) {
|
||||||
|
err = tcp_fd;
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
if (!getpeername(tcp_fd, (struct sockaddr*) &peer, &peer_len)) {
|
if (!getpeername(tcp_fd, (struct sockaddr*) &peer, &peer_len)) {
|
||||||
getnameinfo((struct sockaddr*) &peer, peer_len, host, sizeof(host),
|
getnameinfo((struct sockaddr*) &peer, peer_len, host, sizeof(host),
|
||||||
NULL, 0, NI_NUMERICHOST);
|
NULL, 0, NI_NUMERICHOST);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user