[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 163/222: socketpair: fix double-close in error case
From: |
gnunet |
Subject: |
[gnurl] 163/222: socketpair: fix double-close in error case |
Date: |
Thu, 07 Nov 2019 00:10:59 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 622cf7db6bd2d943e67660020b3984e6068f1084
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Oct 10 11:18:21 2019 +0200
socketpair: fix double-close in error case
Follow-up to bc2dbef0afc08
---
lib/socketpair.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/socketpair.c b/lib/socketpair.c
index 5dd9f27e9..ffdfdad7f 100644
--- a/lib/socketpair.c
+++ b/lib/socketpair.c
@@ -89,8 +89,6 @@ int Curl_socketpair(int domain, int type, int protocol,
if(socks[1] == CURL_SOCKET_BAD)
goto error;
- sclose(listener);
-
/* verify that nothing else connected */
msnprintf(data[0], sizeof(data[0]), "%p", socks);
dlen = strlen(data[0]);
@@ -100,6 +98,8 @@ int Curl_socketpair(int domain, int type, int protocol,
goto error;
if(memcmp(data[0], data[1], dlen))
goto error;
+
+ sclose(listener);
return 0;
error:
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 194/222: appveyor: make winbuilds with DEBUG=no/yes and VS 2015/2017, (continued)
- [gnurl] 194/222: appveyor: make winbuilds with DEBUG=no/yes and VS 2015/2017, gnunet, 2019/11/06
- [gnurl] 164/222: socketpair: fix include and define for older TCP header systems, gnunet, 2019/11/06
- [gnurl] 172/222: tests: use proxy feature, gnunet, 2019/11/06
- [gnurl] 204/222: appveyor: publish artifacts on appveyor, gnunet, 2019/11/06
- [gnurl] 156/222: tests: use port 2 instead of 60000 for a safer non-listening port, gnunet, 2019/11/06
- [gnurl] 158/222: connect: return CURLE_OPERATION_TIMEDOUT for errno == ETIMEDOUT, gnunet, 2019/11/06
- [gnurl] 155/222: KNOWN_BUGS: IDN tests failing on Windows, gnunet, 2019/11/06
- [gnurl] 160/222: socketpair: an implemention for Windows and more, gnunet, 2019/11/06
- [gnurl] 162/222: gskit: use the generic Curl_socketpair, gnunet, 2019/11/06
- [gnurl] 147/222: docs: added multi-event.c example, gnunet, 2019/11/06
- [gnurl] 163/222: socketpair: fix double-close in error case,
gnunet <=
- [gnurl] 170/222: security: silence conversion warning, gnunet, 2019/11/06
- [gnurl] 178/222: test1162: disable MSYS2's POSIX path conversion, gnunet, 2019/11/06
- [gnurl] 166/222: KNOWN_BUGS: "LDAP on Windows does authentication wrong", gnunet, 2019/11/06
- [gnurl] 171/222: smbserver: fix Python 3 compatibility, gnunet, 2019/11/06
- [gnurl] 168/222: TODO: Handle growing SFTP files, gnunet, 2019/11/06
- [gnurl] 189/222: tests: add missing proxy features, gnunet, 2019/11/06
- [gnurl] 177/222: RELEASE-NOTES: synced, gnunet, 2019/11/06
- [gnurl] 181/222: travis: Add an ARM64 build, gnunet, 2019/11/06
- [gnurl] 182/222: http2: expire a timeout at end of stream, gnunet, 2019/11/06
- [gnurl] 187/222: tests: use %FILE_PWD for file:// URLs, gnunet, 2019/11/06