summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarcel Ziswiler <marceli@ziswiler.com>2015-05-05 14:12:43 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-05-05 14:37:50 +0200
commitce75b5292018f8a1cb1b3384b97679300cf1b7d7 (patch)
treecd5d30a4a42ee1c56c945467f90168c3a9a4e669 /common
parent98ec78b1f28627e6d09972e2b1237c2ef8f161d9 (diff)
common: hash: fix crc32 verify
did not work: Colibri T30 # crc32 0x80000000 0x100 crc32 for 80000000 ... 800000ff ==> 9eb4f5ca Colibri T30 # crc32 -v 0x80000000 0x100 c9a057b3 crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != ffffffff ** ERROR ** Colibri T30 # crc32 -v 0x80000000 0x100 9eb4f5ca crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != 301eeead ** ERROR ** now works again: Colibri T30 # crc32 0x80000000 0x100 crc32 for 80000000 ... 800000ff ==> 9eb4f5ca Colibri T30 # crc32 -v 0x80000000 0x100 c9a057b3 crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != c9a057b3 ** ERROR ** Colibri T30 # crc32 -v 0x80000000 0x100 9eb4f5ca Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'common')
-rw-r--r--common/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hash.c b/common/hash.c
index 9e9f84b9fb4..155f476c141 100644
--- a/common/hash.c
+++ b/common/hash.c
@@ -306,7 +306,7 @@ static int parse_verify_sum(struct hash_algo *algo, char *verify_str,
env_var = 1;
}
- if (!env_var) {
+ if (env_var) {
ulong addr;
void *buf;