From: John Kohl Date: Thu, 3 May 1990 18:18:51 +0000 (+0000) Subject: allocate space for cksum X-Git-Tag: krb5-1.0-alpha2~686 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f9c8d63eaa13466b2694577e91cca09bff7b05be;p=krb5.git allocate space for cksum git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@711 dc483132-0cff-0310-8789-dd5450dbe970 --- 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