]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
only declare rv when it is used in destination_from_socket. Fixes 15151
authorNick Mathewson <nickm@torproject.org>
Wed, 4 Mar 2015 11:12:41 +0000 (12:12 +0100)
committerNick Mathewson <nickm@torproject.org>
Wed, 4 Mar 2015 11:12:41 +0000 (12:12 +0100)
changes/bug15151 [new file with mode: 0644]
src/or/connection_edge.c

diff --git a/changes/bug15151 b/changes/bug15151
new file mode 100644 (file)
index 0000000..b9c3061
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (compilation):
+    - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix on
+      0.2.6.2-alpha.
index 3c817decfb785a6fadcfba3e9e500ffcbc2c7b83..e6dfc634e9648c77a10894106b85a60d9702229b 100644 (file)
@@ -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: