|
|
@ -19,21 +19,34 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "setup.h" |
|
|
|
#include "setup.h" |
|
|
|
|
|
|
|
|
|
|
|
#if defined(WIN32) && !defined(WATT32) |
|
|
|
#ifdef HAVE_SYS_SOCKET_H |
|
|
|
#include "nameser.h" |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
# include <sys/socket.h> |
|
|
|
# include <sys/socket.h> |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef HAVE_NETINET_IN_H |
|
|
|
# include <netinet/in.h> |
|
|
|
# include <netinet/in.h> |
|
|
|
#include <arpa/inet.h> |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef HAVE_NETDB_H |
|
|
|
# include <netdb.h> |
|
|
|
# include <netdb.h> |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef HAVE_ARPA_INET_H |
|
|
|
|
|
|
|
# include <arpa/inet.h> |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef HAVE_ARPA_NAMESER_H |
|
|
|
# include <arpa/nameser.h> |
|
|
|
# include <arpa/nameser.h> |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
# include "nameser.h" |
|
|
|
|
|
|
|
#endif |
|
|
|
#ifdef HAVE_ARPA_NAMESER_COMPAT_H |
|
|
|
#ifdef HAVE_ARPA_NAMESER_COMPAT_H |
|
|
|
# include <arpa/nameser_compat.h> |
|
|
|
# include <arpa/nameser_compat.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_STRINGS_H |
|
|
|
|
|
|
|
# include <strings.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <string.h> |
|
|
|
#include <string.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "ares.h" |
|
|
|
#include "ares.h" |
|
|
|
#include "ares_dns.h" |
|
|
|
#include "ares_dns.h" |
|
|
|
#include "ares_private.h" |
|
|
|
#include "ares_private.h" |
|
|
@ -168,9 +181,9 @@ ares_parse_txt_reply (const unsigned char *abuf, int alen, |
|
|
|
rr_name = NULL; |
|
|
|
rr_name = NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (hostname); |
|
|
|
if (hostname) |
|
|
|
free (hostname); |
|
|
|
free (hostname); |
|
|
|
if (rr_name); |
|
|
|
if (rr_name) |
|
|
|
free (rr_name); |
|
|
|
free (rr_name); |
|
|
|
|
|
|
|
|
|
|
|
/* clean up on error */ |
|
|
|
/* clean up on error */ |
|
|
|