diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-07-26 19:07:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-07-26 19:07:26 +0000 |
commit | 4ff4577beb7b7aa286059a5070b23357fff48bf3 (patch) | |
tree | 87c11a323c91def209efc2d0eb79b768f8f2e804 /src/or/rendservice.c | |
parent | 18771e851fab7ec12051636eda1dad7e13b11095 (diff) | |
download | tor-4ff4577beb7b7aa286059a5070b23357fff48bf3.tar.gz tor-4ff4577beb7b7aa286059a5070b23357fff48bf3.zip |
r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400
Refactor connection_t into edge, or, dir, control, and base subtypes. This might save some RAM on busy exit servers, but really matters most in terms of correctness.
svn:r6906
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index d0bb33d138..0cda1d95c0 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1121,7 +1121,7 @@ rend_service_dump_stats(int severity) * or 0 for success. */ int -rend_service_set_connection_addr_port(connection_t *conn, +rend_service_set_connection_addr_port(edge_connection_t *conn, origin_circuit_t *circ) { rend_service_t *service; @@ -1142,14 +1142,14 @@ rend_service_set_connection_addr_port(connection_t *conn, } for (i = 0; i < smartlist_len(service->ports); ++i) { p = smartlist_get(service->ports, i); - if (conn->port == p->virtual_port) { - conn->addr = p->real_addr; - conn->port = p->real_port; + if (conn->_base.port == p->virtual_port) { + conn->_base.addr = p->real_addr; + conn->_base.port = p->real_port; return 0; } } log_info(LD_REND, "No virtual port mapping exists for port %d on service %s", - conn->port,serviceid); + conn->_base.port,serviceid); return -1; } |