Set magic number in krb5_address
authorEzra Peisach <epeisach@mit.edu>
Thu, 15 Feb 1996 15:59:43 +0000 (15:59 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 15 Feb 1996 15:59:43 +0000 (15:59 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7480 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/os/ChangeLog
src/lib/crypto/os/c_localaddr.c

index 8005b54d3d9c7ca5383f5b2a03453102687356f3..8190c36ef8b0d40f22769b70f3f331620d112f06 100644 (file)
@@ -1,3 +1,7 @@
+Thu Feb 15 10:57:27 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * c_localaddr.c: Set magic number in krb5_address.
+
 Fri Oct  6 22:00:48 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * Makefile.in: Remove ##DOS!include of config/windows.in.
index af08c001a47c328a7b4e74d2e22e497feace7a3a..c13aa159afdb169616e623e62488f05ac691d52d 100644 (file)
@@ -162,6 +162,7 @@ n_found = 0;
                address = (krb5_address *)
                    malloc (sizeof(krb5_address));
                if (address) {
+                   address->magic = KV5M_ADDRESS;
                    address->addrtype = ADDRTYPE_INET;
                    address->length = sizeof(struct in_addr);
                    address->contents = (unsigned char *)malloc(address->length);
@@ -186,6 +187,7 @@ n_found = 0;
                address = (krb5_address *)
                    malloc (sizeof (krb5_address) + sizeof (struct ns_addr));
                if (address) {
+                   address->magic = KV5M_ADDRESS;
                    address->addrtype = ADDRTYPE_XNS; 
 
                    /* XXX should we perhaps use ns_host instead? */
@@ -273,6 +275,7 @@ krb5_crypto_os_localaddr (krb5_address ***addr) {
         free (*addr);
         return ENOMEM;
     }
+    (*addr)[0]->magic = KV5M_ADDRESS;
     (*addr)[0]->addrtype = hostrec->h_addrtype;
     (*addr)[0]->length = hostrec->h_length;
     (*addr)[0]->contents = (unsigned char *)malloc((*addr)[0]->length);