r8652@Kushana: nickm | 2006-08-28 16:41:44 -0400

Resolve bug 324: strdup the right variable.


svn:r8277
This commit is contained in:
Nick Mathewson 2006-08-28 20:42:14 +00:00
parent 2499d1db7c
commit dc4951314f

View File

@ -1282,7 +1282,7 @@ configure_nameservers(int force)
return -1; return -1;
} }
tor_free(resolv_conf_fname); tor_free(resolv_conf_fname);
resolv_conf_fname = tor_strdup(resolv_conf_fname); resolv_conf_fname = tor_strdup(conf_fame);
resolv_conf_mtime = st.st_mtime; resolv_conf_mtime = st.st_mtime;
if (nameservers_configured) if (nameservers_configured)
eventdns_resume(); eventdns_resume();