diff options
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |