Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/mLib
authorMark Wooding <mdw@distorted.org.uk>
Tue, 12 Jun 2018 00:39:14 +0000 (01:39 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 12 Jun 2018 00:39:14 +0000 (01:39 +0100)
* 'master' of git.distorted.org.uk:~mdw/publish/public-git/mLib:
  Release 2.2.5.
  sel/ident.c: Don't close the descriptor twice on immediate connect failure.

debian/changelog
sel/ident.c

index fa10942..c815542 100644 (file)
@@ -9,6 +9,12 @@ mlib (2.3.0) experimental; urgency=medium
 
  -- Mark Wooding <mdw@distorted.org.uk>  Tue, 12 Jun 2018 00:30:47 +0100
 
+mlib (2.2.5) experimental; urgency=medium
+
+  * ident: Only close the socket once if connection fails early.
+
+ -- Mark Wooding <mdw@distorted.org.uk>  Sat, 09 Jun 2018 17:40:21 +0100
+
 mlib (2.2.4) experimental; urgency=medium
 
   * debian: Update for Debhelper 9.
index f8ce0c7..0017f0a 100644 (file)
@@ -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 --- */