On 18/10/14 17:49, Vittorio Giovara wrote:
On Sat, Oct 18, 2014 at 8:51 AM, Luca Barbato <[email protected]> wrote:
@@ -254,7 +258,11 @@ int ff_listen_bind(int fd, const struct sockaddr
*addr,

       closesocket(fd);

-    ff_socket_nonblock(ret, 1);
+    res = ff_socket_nonblock(ret, 1);
+    if (res < 0) {
+        closesocket(ret);
+        return ff_neterrno();

return res ?

res is probably going to be -1 in this case, errno contains a more
accurate error description I think.


Actually when fcntl can fail to set that flag? I'm tempted to mark it as false positive.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to