if (*addr == NULL)
return ENOMEM;
-#ifdef HAVE_MACSOCK_H
- hostrec = getmyipaddr();
- /*
- * XXX This error code is not right, but we have nothing better.
- * This will get fixed when we eventually replace the entire
- * Macintosh socket emulation layer.
- */
- if (!hostrec)
- return ENOMEM;
-#else /* HAVE_MACSOCK_H */
err = 0;
if (gethostname (host, sizeof(host))) {
if (!hostrec)
return err;
}
-#endif /* HAVE_MACSOCK_H */
(*addr)[0] = calloc (1, sizeof(krb5_address));
if ((*addr)[0] == NULL) {