* Makefile.in (check-unix): Set LD_LIBRARY_PATH for kdb5_anadd
authorEzra Peisach <epeisach@mit.edu>
Thu, 22 Feb 1996 18:19:15 +0000 (18:19 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 22 Feb 1996 18:19:15 +0000 (18:19 +0000)
* 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

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/Makefile.in
src/lib/krb5/os/full_ipadr.c
src/lib/krb5/os/hostaddr.c

index 97e266600f39a7cd185c64f5492239aea5c210dc..bec11f9fb9076c2dce180e78f5a851ccf9001709 100644 (file)
@@ -1,3 +1,11 @@
+Thu Feb 22 13:16:16 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * 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  <tytso@pao.MIT.EDU>
 
        * def_realm.c (krb5_get_default_realm): If the configuration file
index 225c18c22016636e0d061a8aec1fe4bc2b893fb4..2a675b2ab03ed0486441673f99eb2e16d046e7b8 100644 (file)
@@ -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; \
index 41e6f1c1be7f40184495d4a80a8dd5ae148987eb..07ba48a25b59f6bccb69116ee3aa04858f0b9435 100644 (file)
@@ -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);
index 56833a0981cbbc6da9da1a5b6c6c86adedbea11c..9bd482020c8729f85f88ffad243d583774b4484f 100644 (file)
@@ -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);