From: Ezra Peisach Date: Thu, 22 Feb 1996 18:19:15 +0000 (+0000) Subject: * Makefile.in (check-unix): Set LD_LIBRARY_PATH for kdb5_anadd X-Git-Tag: krb5-1.0-beta6~493 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9d1855978eb506f02716052e8fb8f80241e3cf33;p=krb5.git * Makefile.in (check-unix): Set LD_LIBRARY_PATH for kdb5_anadd * hostaddr.c (krb5_os_hostaddr): Set magic number in structure. * full_ipadr.c (krb5_make_full_ipaddr): Set magic number in structure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7502 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 97e266600..bec11f9fb 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,11 @@ +Thu Feb 22 13:16:16 1996 Ezra Peisach + + * Makefile.in (check-unix): Set LD_LIBRARY_PATH for kdb5_anadd. + + * hostaddr.c (krb5_os_hostaddr): Set magic number in structure. + + * full_ipadr.c (krb5_make_full_ipaddr): Set magic number in structure. + Sat Feb 17 00:05:38 1996 Theodore Y. Ts'o * def_realm.c (krb5_get_default_realm): If the configuration file diff --git a/src/lib/krb5/os/Makefile.in b/src/lib/krb5/os/Makefile.in index 225c18c22..2a675b2ab 100644 --- a/src/lib/krb5/os/Makefile.in +++ b/src/lib/krb5/os/Makefile.in @@ -133,6 +133,7 @@ check-unix:: echo '[realms]' >> ./t_an.conf echo 'r = {' >> ./t_an.conf if test -r ../../../admin/aname/kdb5_anadd ; then \ + LD_LIBRARY_PATH=$(TOPLIBD) ; export LD_LIBRARY_PATH ; \ ../../../admin/aname/kdb5_anadd -a -n ./t_an p/i/i/i@r piii; \ ../../../admin/aname/kdb5_anadd -a -n ./t_an p/a/b/c@r pabc; \ echo 'auth_to_local = DB:./t_an' >> ./t_an.conf; \ diff --git a/src/lib/krb5/os/full_ipadr.c b/src/lib/krb5/os/full_ipadr.c index 41e6f1c1b..07ba48a25 100644 --- a/src/lib/krb5/os/full_ipadr.c +++ b/src/lib/krb5/os/full_ipadr.c @@ -48,6 +48,7 @@ krb5_make_full_ipaddr(context, adr, port, outaddr) if (!(retaddr = (krb5_address *)malloc(sizeof(*retaddr)))) { return ENOMEM; } + retaddr->magic = KV5M_ADDRESS; retaddr->addrtype = ADDRTYPE_ADDRPORT; retaddr->length = sizeof(smushaddr)+ sizeof(smushport) + 2*sizeof(temptype) + 2*sizeof(templength); diff --git a/src/lib/krb5/os/hostaddr.c b/src/lib/krb5/os/hostaddr.c index 56833a098..9bd482020 100644 --- a/src/lib/krb5/os/hostaddr.c +++ b/src/lib/krb5/os/hostaddr.c @@ -57,6 +57,7 @@ krb5_os_hostaddr(context, name, ret_addrs) retval = ENOMEM; goto errout; } + addrs[i]->magic = KV5M_ADDRESS; addrs[i]->addrtype = hp->h_addrtype; addrs[i]->length = hp->h_length; addrs[i]->contents = (unsigned char *)malloc(addrs[i]->length);