On 12.01.2017 06:27, Anton Romanov wrote:
bound = is_fd_bound(fd, &uaddr, &uaddrlen);
release_sock_fd( s, fd );
if (uaddr.addr.sa_family == AF_INET && bound == 0)
You might want to change the order here, uaddr is not initialized if is_fd_bound fails.