]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge branch 'maint-0.3.0'
authorNick Mathewson <nickm@torproject.org>
Mon, 27 Feb 2017 16:03:25 +0000 (11:03 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 27 Feb 2017 16:03:25 +0000 (11:03 -0500)
1  2 
src/or/directory.c

index fae313159dba431f72635b5d2140e3029b09bffd,70437fe755f639c13836586ab51971608b9e2cee..e60952fcf442bab6846709a9f414f9b8dea73dbf
@@@ -1077,11 -1077,14 +1078,12 @@@ directory_must_use_begindir(const or_op
   */
  static int
  directory_command_should_use_begindir(const or_options_t *options,
-                                       const tor_addr_t *addr,
-                                       int or_port,
+                                       const tor_addr_t *or_addr, int or_port,
+                                       const tor_addr_t *dir_addr, int dir_port,
 -                                      uint8_t router_purpose,
                                        dir_indirection_t indirection,
                                        const char **reason)
  {
 -  (void) router_purpose;
 -  (void) dir_addr;
++  (void)dir_addr;
    tor_assert(reason);
    *reason = NULL;
  
@@@ -1189,7 -1197,9 +1196,10 @@@ directory_initiate_command_rend(const t
     * send our directory request)? */
    const int use_begindir = directory_command_should_use_begindir(options,
                                       &or_addr_port->addr, or_addr_port->port,
-                                      indirection, &begindir_reason);
+                                      &dir_addr_port->addr, dir_addr_port->port,
 -                                     router_purpose, indirection,
++                                     indirection,
+                                      &begindir_reason);
++
    /* Will the connection go via a three-hop Tor circuit? Note that this
     * is separate from whether it will use_begindir. */
    const int anonymized_connection = dirind_is_anon(indirection);