projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54e3f0b
)
allocate space for cksum
author
John Kohl
<jtkohl@mit.edu>
Thu, 3 May 1990 18:18:51 +0000
(18:18 +0000)
committer
John Kohl
<jtkohl@mit.edu>
Thu, 3 May 1990 18:18:51 +0000
(18:18 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@711
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/crypto/crc32/crc.c
patch
|
blob
|
history
diff --git
a/src/lib/crypto/crc32/crc.c
b/src/lib/crypto/crc32/crc.c
index 288f7b69357cbc3295a90204d6b2f8a014bba7b1..4444b093e1f39862650a6ccb3c9c7b7a34d40044 100644
(file)
--- a/
src/lib/crypto/crc32/crc.c
+++ b/
src/lib/crypto/crc32/crc.c
@@
-18,6
+18,8
@@
static char rcsid_crc_c[] =
#include <krb5/copyright.h>
#include <krb5/krb5.h>
#include <krb5/crc-32.h>
+#include <krb5/ext-proto.h>
+#include <errno.h>
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<in_length;i++) {
idx = (data[i] ^ c);
idx &= 0xff;