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:
parent
478b30c191
commit
c0e369d44a
1 changed files with 1 additions and 0 deletions
1
gtk/io.c
1
gtk/io.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue