Skip to content

Commit 0b26791

Browse files
Code review feedback
1 parent 3cc1554 commit 0b26791

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wolfcrypt/src/port/ti/ti-hash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ static int hashUpdate(wolfssl_TI_Hash *hash, const byte* data, word32 len)
8787
} else {
8888
p = XREALLOC(hash->msg, usedSz, NULL, DYNAMIC_TYPE_TMP_BUFFER);
8989
}
90-
if (p == 0)return 1;
90+
if (p == 0)
91+
return MEMORY_E;
9192
hash->msg = p;
9293
hash->len = usedSz;
9394
}

0 commit comments

Comments
 (0)