From a1fa80a4f8e747b31b999035729b7871ae072817 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 14 May 2020 18:41:36 +0200 Subject: WIP fix --- sysdep/unix/io.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysdep/unix') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index bdad4ab9..0cec705d 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1583,6 +1583,11 @@ sk_connect_unix(sock *s, char *name, socklen_t namelen) sk_insert(s); sk_alloc_bufs(s); return 0; + + err: + close(fd); + s->fd = -1; + return -1; } -- cgit v1.2.3