diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-10-03 04:53:17 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-10-03 04:53:17 +0000 |
commit | f08f09ecd42493885c2db0e2c97b5d4ffefc0995 (patch) | |
tree | 4d41cf36dedde631475e9d980680375b32c1dd8f /wsutil/airpdcap_wep.c | |
parent | b7bdb4a98518e64c087d8bcbd4de7b3e476f92b9 (diff) | |
download | wireshark-f08f09ecd42493885c2db0e2c97b5d4ffefc0995.tar.gz wireshark-f08f09ecd42493885c2db0e2c97b5d4ffefc0995.tar.bz2 wireshark-f08f09ecd42493885c2db0e2c97b5d4ffefc0995.zip |
From Michael Mann:
Condense all SCTP CRC routines to wsutil/crc32.[ch]. Also made
crc32_ccitt_table not explicitly accessible (must use crc32_ccitt_table_lookup).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6298
svn path=/trunk/; revision=39233
Diffstat (limited to 'wsutil/airpdcap_wep.c')
-rw-r--r-- | wsutil/airpdcap_wep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/airpdcap_wep.c b/wsutil/airpdcap_wep.c index 6689535885..29d7d44743 100644 --- a/wsutil/airpdcap_wep.c +++ b/wsutil/airpdcap_wep.c @@ -77,7 +77,7 @@ int AirPDcapWepDecrypt( j = (j + S[i]) & 0xff; S_SWAP(i, j); *cypher_text ^= S[(S[i] + S[j]) & 0xff]; - crc = crc32_ccitt_table[(crc ^ *cypher_text) & 0xff] ^ (crc >> 8); + crc = crc32_ccitt_table_lookup((crc ^ *cypher_text) & 0xff) ^ (crc >> 8); cypher_text++; } |