From 5d6c628ad9e0d5878b5baf38e65bdca6dd25dd9e Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Thu, 27 May 1999 19:09:34 +0000 Subject: [PATCH] Removed call to getmyipaddr since Sockets has gethostname git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11472 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/localaddr.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/lib/krb5/os/localaddr.c b/src/lib/krb5/os/localaddr.c index e0b4aa90b..8dd402e49 100644 --- a/src/lib/krb5/os/localaddr.c +++ b/src/lib/krb5/os/localaddr.c @@ -300,16 +300,6 @@ krb5_os_localaddr (krb5_context context, krb5_address ***addr) { 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))) { @@ -328,7 +318,6 @@ krb5_os_localaddr (krb5_context context, krb5_address ***addr) { if (!hostrec) return err; } -#endif /* HAVE_MACSOCK_H */ (*addr)[0] = calloc (1, sizeof(krb5_address)); if ((*addr)[0] == NULL) { -- 2.26.2