First bit of set_from_os loads OS defaults

This commit is contained in:
Willem Toorop 2016-07-14 15:42:49 +02:00
parent 9cb38bc822
commit 255cc9ab36
1 changed files with 2 additions and 2 deletions

View File

@ -1277,10 +1277,10 @@ getdns_context_create_with_extended_memory_functions(
// resolv.conf does not exist on Windows, handle differently // resolv.conf does not exist on Windows, handle differently
#ifndef USE_WINSOCK #ifndef USE_WINSOCK
if (set_from_os && (r = set_os_defaults(result))) if ((set_from_os & 1) && (r = set_os_defaults(result)))
goto error; goto error;
#else #else
if (set_from_os && (r = set_os_defaults_windows(result))) if ((set_from_os & 1) && (r = set_os_defaults_windows(result)))
goto error; goto error;
#endif #endif