From: Mark Wooding Date: Sat, 9 Jun 2018 13:54:40 +0000 (+0100) Subject: sel/ident.c: Don't close the descriptor twice on immediate connect failure. X-Git-Tag: 2.2.5~1 X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/commitdiff_plain/4e37797574d30b46911354d889a6731bc48adeb5 sel/ident.c: Don't close the descriptor twice on immediate connect failure. Confusingly, `conn_init' has already done that. --- diff --git a/sel/ident.c b/sel/ident.c index f8ce0c7..0017f0a 100644 --- a/sel/ident.c +++ b/sel/ident.c @@ -282,7 +282,7 @@ static void go(ident_request *rq) sin.sin_addr = rq->remote.sin_addr; if (conn_init(&rq->c, rq->s, fd, (struct sockaddr *)&sin, sizeof(sin), connected, rq)) - goto fail_1; + goto fail_0; /* --- Finish off initializing the block --- */