Lines Matching refs:hp
136 struct hostent *hp = NULL;
159 hp = res_getipnodebyname(hostname, addr_family, 0, &err);
160 if (!hp) {
176 remote_host = strdup(hp ? hp->h_name : hostname);
178 if (hp != NULL)
179 res_freehostent(hp);
195 hp2 = res_getipnodebyaddr(hp->h_addr, hp->h_length,
196 hp->h_addrtype, &err);
203 if (hp != NULL)
204 res_freehostent(hp);
210 if (hp != NULL) {
211 res_freehostent(hp);