Loading ares/ares_free_hostent.c +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ void ares_free_hostent(struct hostent *host) { char **p; free(host->h_name); free((char *)(host->h_name)); for (p = host->h_aliases; *p; p++) free(*p); free(host->h_aliases); Loading ares/ares_gethostbyname.c +1 −1 Original line number Diff line number Diff line Loading @@ -239,7 +239,7 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac hostent.h_addr_list = addrs; callback(arg, ARES_SUCCESS, &hostent); free(hostent.h_name); free((char *)(hostent.h_name)); return 1; } Loading ares/ares_getnameinfo.c +2 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,8 @@ static void nameinfo_callback(void *arg, int status, struct hostent *host) *end = 0; } } niquery->callback(niquery->arg, ARES_SUCCESS, host->h_name, service); niquery->callback(niquery->arg, ARES_SUCCESS, (char *)(host->h_name), service); return; } /* We couldn't find the host, but it's OK, we can use the IP */ Loading Loading
ares/ares_free_hostent.c +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ void ares_free_hostent(struct hostent *host) { char **p; free(host->h_name); free((char *)(host->h_name)); for (p = host->h_aliases; *p; p++) free(*p); free(host->h_aliases); Loading
ares/ares_gethostbyname.c +1 −1 Original line number Diff line number Diff line Loading @@ -239,7 +239,7 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac hostent.h_addr_list = addrs; callback(arg, ARES_SUCCESS, &hostent); free(hostent.h_name); free((char *)(hostent.h_name)); return 1; } Loading
ares/ares_getnameinfo.c +2 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,8 @@ static void nameinfo_callback(void *arg, int status, struct hostent *host) *end = 0; } } niquery->callback(niquery->arg, ARES_SUCCESS, host->h_name, service); niquery->callback(niquery->arg, ARES_SUCCESS, (char *)(host->h_name), service); return; } /* We couldn't find the host, but it's OK, we can use the IP */ Loading