Commit bf6e332c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '76ccf114'

* commit '76ccf114':
  rtsp: check ffurl_get_file_handle() return value
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 988d27b8 76ccf114
......@@ -1752,6 +1752,10 @@ redirect:
rt->seq = 0;
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)) {
getnameinfo((struct sockaddr*) &peer, peer_len, host, sizeof(host),
NULL, 0, NI_NUMERICHOST);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment