diff options
Diffstat (limited to 'bounce.c')
-rw-r--r-- | bounce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bounce.c b/bounce.c index b0cdca2..a96f753 100644 --- a/bounce.c +++ b/bounce.c @@ -481,12 +481,12 @@ int main(int argc, char *argv[]) { if (!event.clients[i]) { struct tls *tls; - int fd = localAccept(&tls, event.fds[i].fd); - if (fd < 0) { + int sock = localAccept(&tls, event.fds[i].fd); + if (sock < 0) { warn("accept"); continue; } - eventAdd(fd, clientAlloc(tls)); + eventAdd(sock, clientAlloc(sock, tls)); continue; } |