From e8a90994759c7cbe41deac6e6abfe7b61b6d6a93 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 15 Feb 1996 15:59:43 +0000 Subject: [PATCH] Set magic number in krb5_address git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7480 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/os/ChangeLog | 4 ++++ src/lib/crypto/os/c_localaddr.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/lib/crypto/os/ChangeLog b/src/lib/crypto/os/ChangeLog index 8005b54d3..8190c36ef 100644 --- a/src/lib/crypto/os/ChangeLog +++ b/src/lib/crypto/os/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 15 10:57:27 1996 Ezra Peisach + + * c_localaddr.c: Set magic number in krb5_address. + Fri Oct 6 22:00:48 1995 Theodore Y. Ts'o * Makefile.in: Remove ##DOS!include of config/windows.in. diff --git a/src/lib/crypto/os/c_localaddr.c b/src/lib/crypto/os/c_localaddr.c index af08c001a..c13aa159a 100644 --- a/src/lib/crypto/os/c_localaddr.c +++ b/src/lib/crypto/os/c_localaddr.c @@ -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); -- 2.26.2