Fix bogus pointer use (and bug 806) on win32.
svn:r16617
794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
- Correctly detect the presence of the linux/netfilter_ipv4.h header
when building against recent kernels. Bugfix on 0.1.2.1-alpha.
+ - Pick size of default geoip filename string correctly on windows.
+ Fixes bug 806. Bugfix on 0.2.0.30.
Changes in version 0.2.0.30 - 2008-07-15
#ifdef WIN32
if (!strcmp(actual_fname, "<default>")) {
const char *conf_root = get_windows_conf_root();
- size_t len = tor_malloc(strlen(conf_root)+16);
+ size_t len = strlen(conf_root)+16;
tor_free(actual_fname);
actual_fname = tor_malloc(len+1);
tor_snprintf(actual_fname, len, "%s\\geoip", conf_root);