where no controller could authenticate. Now we exit.
- If we require CookieAuthentication, stop generating a new cookie
every time we change any piece of our config.
+ - Fix a bug with AutomapHostsOnResolve that would always cause the second
+ request to fail. Bug reported by Kate. Bugfix on 0.2.0.3-alpha.
Changes in version 0.2.0.4-alpha - 2007-08-01
{
char buf[64];
struct in_addr in;
+ tor_assert(addressmap);
if (type == RESOLVED_TYPE_HOSTNAME) {
char rand[10];
}
in.s_addr = htonl(next_virtual_addr);
tor_inet_ntoa(&in, buf, sizeof(buf));
- if (!strmap_get(addressmap, buf))
+ if (!strmap_get(addressmap, buf)) {
+ ++next_virtual_addr;
break;
+ }
++next_virtual_addr;
--available;
log_warn(LD_CONFIG, "Ran out of virtual addresses!");
return NULL;
}
- if (!addr_mask_cmp_bits(next_virtual_addr, virtual_addr_network,
- virtual_addr_netmask_bits))
+ if (addr_mask_cmp_bits(next_virtual_addr, virtual_addr_network,
+ virtual_addr_netmask_bits))
next_virtual_addr = virtual_addr_network;
}
return tor_strdup(buf);