summaryrefslogtreecommitdiff
path: root/src/or/connection_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/connection_exit.c')
-rw-r--r--src/or/connection_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_exit.c b/src/or/connection_exit.c
index 88f27d2cb9..f674404028 100644
--- a/src/or/connection_exit.c
+++ b/src/or/connection_exit.c
@@ -76,7 +76,7 @@ int connection_exit_connect(connection_t *conn) {
log_fn(LOG_ERR,"Error creating network socket.");
return -1;
}
- fcntl(s, F_SETFL, O_NONBLOCK); /* set s to non-blocking */
+ set_socket_nonblocking(s);
memset((void *)&dest_addr,0,sizeof(dest_addr));
dest_addr.sin_family = AF_INET;