mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
bugfix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@294 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -48,7 +48,10 @@ void init_crc32()
|
||||
unsigned long crc;
|
||||
unsigned long poly = 0xEDB88320L;
|
||||
int n, bit;
|
||||
crc32 = (unsigned long *) malloc(256 * sizeof(unsigned long));
|
||||
if ((crc32 = (unsigned long *) malloc(256 * sizeof(unsigned long))) == (void *)-1) {
|
||||
perror("malloc");
|
||||
exit(1);
|
||||
}
|
||||
for (n = 0; n < 256; n++) {
|
||||
crc = (unsigned long) n;
|
||||
for (bit = 0; bit < 8; bit++)
|
||||
|
||||
Reference in New Issue
Block a user