Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED

if library initialization has not been performed calling ares_library_init().
This commit is contained in:
Yang Tse
2009-05-26 18:00:14 +00:00
parent 675d6ec5e6
commit 1c93d9dcfe
9 changed files with 46 additions and 9 deletions

View File

@@ -44,6 +44,7 @@ const char *ares_strerror(int code)
"Illegal flags specified",
"Given hostname is not numeric",
"Illegal hints flags specified",
"c-ares library initialization not yet performed",
"Error loading iphlpapi.dll",
"Could not find GetNetworkParams function"
};