Ticket #10849: 0001-fixup-TunnelDirConns-0-no-longer-breaks-hidden-servi.patch

File 0001-fixup-TunnelDirConns-0-no-longer-breaks-hidden-servi.patch, 973 bytes (added by rransom, 5 years ago)

Fix my %@#! stupid code typo

  • src/or/directory.c

    From 95d7bb3fe57bd274e9f4d2258abe6cd242fbda89 Mon Sep 17 00:00:00 2001
    From: Robert Ransom <rransom.8774@gmail.com>
    Date: Tue, 11 Feb 2014 22:32:32 -0800
    Subject: [PATCH 1/2] fixup! TunnelDirConns=0 no longer breaks hidden services
    
    Fix my %@#! stupid code typo
    ---
     src/or/directory.c |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/or/directory.c b/src/or/directory.c
    index 4ec0870..672bc67 100644
    a b directory_command_should_use_begindir(const or_options_t *options, 
    923923      return 0; /* We're firewalled or are acting like a relay -- also no. */
    924924  if (!options->TunnelDirConns &&
    925925      router_purpose != ROUTER_PURPOSE_BRIDGE &&
    926       !is_sensitive_dir_purpose(router_purpose))
     926      !is_sensitive_dir_purpose(dir_purpose))
    927927    return 0; /* We prefer to avoid using begindir conns, and it's possible
    928928               * for us to do so. Fine. */
    929929  return 1;