aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-03-04 12:15:10 +0100
committerNick Mathewson <nickm@torproject.org>2015-03-04 12:15:10 +0100
commit6a8550fa3c1a435a5c6d3759b893b10f1899e570 (patch)
tree0622523a85a361fa5ab7313e189f8ce7a4a7f51e /src
parenta1bdb6e42cea6b2a7b6f5dfb937752f9fd997599 (diff)
parent5ad47aafabfdb9718b4beb7c3893af58a9147e2e (diff)
downloadtor-6a8550fa3c1a435a5c6d3759b893b10f1899e570.tar.gz
tor-6a8550fa3c1a435a5c6d3759b893b10f1899e570.zip
Merge remote-tracking branch 'origin/maint-0.2.6'
Diffstat (limited to 'src')
-rw-r--r--src/common/include.am1
-rw-r--r--src/or/connection_edge.c2
-rw-r--r--src/or/include.am1
3 files changed, 3 insertions, 1 deletions
diff --git a/src/common/include.am b/src/common/include.am
index 5b63392541..a642f7a79c 100644
--- a/src/common/include.am
+++ b/src/common/include.am
@@ -146,4 +146,5 @@ src/common/common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(COMMONHEA
fi
src/common/util_codedigest.o: src/common/common_sha1.i
+src/common/src_common_libor_testing_a-util_codedigest.o: src/common/common_sha1.i
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 3c817decfb..e6dfc634e9 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1598,7 +1598,6 @@ destination_from_socket(entry_connection_t *conn, socks_request_t *req)
struct sockaddr_storage orig_dst;
socklen_t orig_dst_len = sizeof(orig_dst);
tor_addr_t addr;
- int rv;
#ifdef TRANS_TRPOXY
if (options->TransProxyType_parsed == TPT_TPROXY) {
@@ -1613,6 +1612,7 @@ destination_from_socket(entry_connection_t *conn, socks_request_t *req)
#endif
#ifdef TRANS_NETFILTER
+ int rv = -1;
switch (ENTRY_TO_CONN(conn)->socket_family) {
#ifdef TRANS_NETFILTER_IPV4
case AF_INET:
diff --git a/src/or/include.am b/src/or/include.am
index b44e1099dc..e257ceb8cc 100644
--- a/src/or/include.am
+++ b/src/or/include.am
@@ -190,6 +190,7 @@ ORHEADERS = \
noinst_HEADERS+= $(ORHEADERS) micro-revision.i
src/or/config_codedigest.o: src/or/or_sha1.i
+src/or/src_or_libtor_testing_a-config_codedigest.o: src/or/or_sha1.i
micro-revision.i: FORCE
@rm -f micro-revision.tmp; \