summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-21 08:39:07 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-08 14:47:19 -0500
commit0792cc107ef588b9f9fa27165b73e19fbf07e92b (patch)
tree3194ccd5f53837a866288647b25f8c7b294cf22c /src/or/connection_or.c
parenta48ba072a98a5d946079e2e0c15c84bb8c9d1a19 (diff)
downloadtor-0792cc107ef588b9f9fa27165b73e19fbf07e92b.tar.gz
tor-0792cc107ef588b9f9fa27165b73e19fbf07e92b.zip
Convert connection_free to a nulling macro.
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 7af1f2b645..fa8991596b 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -1247,7 +1247,7 @@ connection_or_connect, (const tor_addr_t *_addr, uint16_t port,
fmt_addrport(&TO_CONN(conn)->addr, TO_CONN(conn)->port));
}
- connection_free(TO_CONN(conn));
+ connection_free_(TO_CONN(conn));
return NULL;
}
@@ -1260,7 +1260,7 @@ connection_or_connect, (const tor_addr_t *_addr, uint16_t port,
connection_or_connect_failed(conn,
errno_to_orconn_end_reason(socket_error),
tor_socket_strerror(socket_error));
- connection_free(TO_CONN(conn));
+ connection_free_(TO_CONN(conn));
return NULL;
case 0:
connection_watch_events(TO_CONN(conn), READ_EVENT | WRITE_EVENT);