summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-11-14 11:47:26 -0500
committerJune McEnroe <june@causal.agency>2020-11-14 11:47:26 -0500
commit70c3c9156a64c9053978e499328a121757628ed2 (patch)
tree978a97afca4539be291cd6aec5e8df20e5f44e6b /bounce.c
parentOnly send shutdown QUIT and ERROR to registered clients (diff)
downloadpounce-70c3c9156a64c9053978e499328a121757628ed2.tar.gz
pounce-70c3c9156a64c9053978e499328a121757628ed2.zip
Swap localAccept parameter order
Diffstat (limited to '')
-rw-r--r--bounce.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bounce.c b/bounce.c
index f460d74..b0cdca2 100644
--- a/bounce.c
+++ b/bounce.c
@@ -480,9 +480,9 @@ int main(int argc, char *argv[]) {
 			}
 
 			if (!event.clients[i]) {
-				int fd;
-				struct tls *tls = localAccept(&fd, event.fds[i].fd);
-				if (!tls) {
+				struct tls *tls;
+				int fd = localAccept(&tls, event.fds[i].fd);
+				if (fd < 0) {
 					warn("accept");
 					continue;
 				}