aboutsummaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-04-02 09:22:31 -0400
committerThomas Winget <tewinget@gmail.com>2015-04-02 09:22:31 -0400
commitc0de96f8bd2f64884255f9b0b61a4775ada5e3e6 (patch)
tree83d8d74d8a7d94d7dcbe9e512d4263631a59eadc /src/daemon
parentMerge pull request #248 (diff)
downloadmonero-c0de96f8bd2f64884255f9b0b61a4775ada5e3e6.tar.xz
Fixed DNS resolution bug in Windows
Due to a bug in unbound, we were passing a string containing a null character to ub_ctx_resolvconf and ub_ctx_hosts rather than a NULL pointer. On *nix this wasn't causing headache, but on Windows this was causing unbound to not correctly load DNS settings from the OS. Note on the bug: in a Windows-specific code branch in the function ub_ctx_hosts(), if the hosts file specified was a NULL pointer, a call to getenv() was stored in a local char* and later freed. This is incorrect, as we do not own that data, and caused the program to crash.
Diffstat (limited to 'src/daemon')
0 files changed, 0 insertions, 0 deletions