1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-03 10:15:45 +00:00

Don't pass an uninitialized variable to accept().

This commit is contained in:
Josh Elsasser 2007-03-24 10:06:56 +00:00
parent 478b30c191
commit c0e369d44a

View file

@ -278,6 +278,7 @@ io_accept(struct iosource *io) {
int fd;
socklen_t len;
len = io->inmax;
if(0 > (fd = accept(io->infd.fd, (struct sockaddr*)io->inbuf, &len))) {
if(EAGAIN == errno || ECONNABORTED == errno || EWOULDBLOCK == errno)
return;