Searched refs:hp2 (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsn2princ.c120 struct hostent *hp2 = NULL; local
185 hp2 = res_getipnodebyaddr(hp->h_addr, hp->h_length,
188 if (hp2 != NULL) {
190 remote_host = strdup(hp2->h_name);
192 res_freehostent(hp2);
206 if (hp2 != NULL) {
207 res_freehostent(hp2);
/illumos-gate/usr/src/lib/libresolv/
H A Dres_gethost.c320 struct hostent *hp, *hp2; local
329 if ((hp2 = res_gethostbyname(hbuf)) != (struct hostent *)NULL)
330 for (a = hp2->h_addr_list; *a; a++)
332 if (memcmp(*a, addr, hp2->h_length) == 0)
334 if (bcmp(*a, addr, hp2->h_length) == 0)
336 return (hp2);

Completed in 58 milliseconds