summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-07-05 05:01:00 -0400
committerNick Mathewson <nickm@torproject.org>2012-07-05 05:01:00 -0400
commite9b33ed1bf4140e3aeda5eb9126027fbe5a3ec5a (patch)
treec39a2423bf87c145677fb79a00d670a2b05863b0 /src/or
parentd13389b30ec2e17a8f08a00f82fac420ae968cd1 (diff)
downloadtor-e9b33ed1bf4140e3aeda5eb9126027fbe5a3ec5a.tar.gz
tor-e9b33ed1bf4140e3aeda5eb9126027fbe5a3ec5a.zip
On windows, ENOBUFS starts with WSA. #6296. Fix on 0.2.18-rc
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index af5c011815..95101ef65d 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1336,7 +1336,7 @@ connection_connect(connection_t *conn, const char *address,
if (get_n_open_sockets() >= get_options()->_ConnLimit-1) {
warn_too_many_conns();
- *socket_error = ENOBUFS;
+ *socket_error = SOCK_ERRNO(ENOBUFS);
return -1;
}
@@ -1431,7 +1431,7 @@ connection_connect(connection_t *conn, const char *address,
conn->s = s;
if (connection_add_connecting(conn) < 0) {
/* no space, forget it */
- *socket_error = ENOBUFS;
+ *socket_error = SOCK_ERRNO(ENOBUFS);
return -1;
}
return inprogress ? 0 : 1;