From: Ezra Peisach Date: Thu, 15 Feb 1996 15:59:43 +0000 (+0000) Subject: Set magic number in krb5_address X-Git-Tag: krb5-1.0-beta6~508 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8a90994759c7cbe41deac6e6abfe7b61b6d6a93;p=krb5.git Set magic number in krb5_address git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7480 dc483132-0cff-0310-8789-dd5450dbe970 --- 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);