mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
only declare rv when it is used in destination_from_socket. Fixes 15151
This commit is contained in:
parent
0f2f8fd68a
commit
2d926d0147
2 changed files with 4 additions and 1 deletions
3
changes/bug15151
Normal file
3
changes/bug15151
Normal file
|
@ -0,0 +1,3 @@
|
|||
o Minor bugfixes (compilation):
|
||||
- Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix on
|
||||
0.2.6.2-alpha.
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue