mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
alg comparison now correctly returns 0 when one hash is NULL
This commit is contained in:
parent
5fa0683bd8
commit
6ed2864bc3
1 changed files with 2 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ static LTC_INLINE int s_signature_algorithms_equal(const ltc_x509_signature_algo
|
|||
else if (a->u.hash != NULL && b->u.hash != NULL) {
|
||||
if (XSTRCMP(a->u.hash, b->u.hash) != 0)
|
||||
return 0;
|
||||
} else if (a->u.hash != b->u.hash) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue