summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.c b/server.c
index 913fbfe..2469608 100644
--- a/server.c
+++ b/server.c
@@ -207,14 +207,15 @@ server_local_accept(struct cfg *cfg, struct uring_task *task, int res)
scfg->name, pbuf, lbuf, local->addrstr);
if (list_empty(&scfg->remotes)) {
+ /* This shouldn't be possible, checked before opening local */
error("scfg->remotes empty!\n");
- uring_close(cfg, NULL, res, NULL);
+ uring_close(cfg, &local->task, res);
goto out;
}
proxy = proxy_new(cfg, scfg, &local->peer, res);
if (!proxy)
- uring_close(cfg, NULL, res, NULL);
+ uring_close(cfg, &local->task, res);
out:
uring_accept(cfg, &local->task, &local->peer, server_local_accept);