summaryrefslogtreecommitdiffstats
path: root/libtomcrypt/hashes/hash_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtomcrypt/hashes/hash_memory.c')
-rw-r--r--libtomcrypt/hashes/hash_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtomcrypt/hashes/hash_memory.c b/libtomcrypt/hashes/hash_memory.c
index 13e7d36..267957a 100644
--- a/libtomcrypt/hashes/hash_memory.c
+++ b/libtomcrypt/hashes/hash_memory.c
@@ -36,7 +36,7 @@ int hash_memory(const struct algo_properties_st *hash, const unsigned char *in,
LTC_ARGCHK(out != NULL);
LTC_ARGCHK(outlen != NULL);
- if ((err = hash_is_valid(hash->algo)) != CRYPT_OK) {
+ if ((err = hash_is_valid(hash)) != CRYPT_OK) {
return err;
}