diff options
author | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:38:40 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:38:40 +0000 |
commit | 1b816ea846aca3ee89e7995373ace609e9518424 (patch) | |
tree | b41cdc8495cae7fa9c2e0f98a5f2e71656b61f9a /crc32.c | |
parent | fa585019a79ebcb4e0202b1c33f87ff1c5c9ce1c (diff) | |
parent | 086ea76990b1e6287c24b6db74adffd4605eb3b0 (diff) |
import openssh-4.6p1-gsskex-20070312.patch
Diffstat (limited to 'crc32.c')
-rw-r--r-- | crc32.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |