From f9c8d63eaa13466b2694577e91cca09bff7b05be Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 3 May 1990 18:18:51 +0000 Subject: [PATCH] allocate space for cksum git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@711 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/crc32/crc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/crypto/crc32/crc.c b/src/lib/crypto/crc32/crc.c index 288f7b693..4444b093e 100644 --- a/src/lib/crypto/crc32/crc.c +++ b/src/lib/crypto/crc32/crc.c @@ -18,6 +18,8 @@ static char rcsid_crc_c[] = #include #include #include +#include +#include static u_long const crc_table[256] = { 0x00000000, 0x01080082, 0x02100104, 0x03180186, @@ -100,6 +102,10 @@ krb5_checksum *outcksum; register int idx; int i; + outcksum->contents = (krb5_octet *)malloc(4); + if (!outcksum->contents) + return ENOMEM; + for (i=0; i