mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[tools] fix crc calculation with the new padding (#5143)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15977 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
895cc55cde
commit
8e8024fce2
@ -233,7 +233,7 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin,
|
||||
/* Choose and compute the CRC32 that should be inserted in the tag */
|
||||
/* and fill reserved tag following profile specification */
|
||||
if ( profile && (strcmp(profile, "alice") == 0)) {
|
||||
crc = compute_crc32(crc, binfile, kerneloff - fwaddr, kernellen);
|
||||
crc = compute_crc32(crc, binfile, kerneloff - fwaddr, kernellen + rootfsoffpadlen);
|
||||
/* Should fill alice_data and put them on reserved1 */
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user