summaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crc32.c b/crc32.c
index ac627b57a..c192eb4d6 100644
--- a/crc32.c
+++ b/crc32.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: crc32.c,v 1.9 2003/02/12 21:39:50 markus Exp $ */ 1/* $OpenBSD: crc32.c,v 1.11 2006/04/22 18:29:33 stevesk Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2003 Markus Friedl. All rights reserved. 4 * Copyright (c) 2003 Markus Friedl. All rights reserved.
@@ -99,7 +99,7 @@ ssh_crc32(const u_char *buf, u_int32_t size)
99 u_int32_t i, crc; 99 u_int32_t i, crc;
100 100
101 crc = 0; 101 crc = 0;
102 for (i = 0; i < size; i++) 102 for (i = 0; i < size; i++)
103 crc = crc32tab[(crc ^ buf[i]) & 0xff] ^ (crc >> 8); 103 crc = crc32tab[(crc ^ buf[i]) & 0xff] ^ (crc >> 8);
104 return crc; 104 return crc;
105} 105}