aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crypt
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-08-31 11:47:27 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-08-31 11:47:27 +0000
commit84b3c5da84829bff2d89bcdc4351ab451a332ce8 (patch)
treedcba77617a427261533eace98c505c5cfc198a33 /epan/crypt
parent5198e05412667027ef63aaabc097f11fb8f7f781 (diff)
Make lookup functions for accessing crc32c_table and crc32_ccitt_table.
svn path=/trunk/; revision=38817
Diffstat (limited to 'epan/crypt')
-rw-r--r--epan/crypt/airpdcap_wep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/crypt/airpdcap_wep.c b/epan/crypt/airpdcap_wep.c
index 6007f115ba..9353d06f77 100644
--- a/epan/crypt/airpdcap_wep.c
+++ b/epan/crypt/airpdcap_wep.c
@@ -80,7 +80,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++;
}