mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
fix improper err handling
This commit is contained in:
parent
c59a0ef634
commit
6fa59793ad
1 changed files with 1 additions and 0 deletions
|
|
@ -201,6 +201,7 @@ static int s_get_general_name(const ltc_asn1_list *seq, ltc_x509_string *name)
|
|||
break;
|
||||
}
|
||||
if ((err = pk_oid_num_to_str(oid, oid_len, NULL, &len)) != CRYPT_BUFFER_OVERFLOW) {
|
||||
if (err == CRYPT_OK) err = CRYPT_ERROR;
|
||||
break;
|
||||
}
|
||||
str = XMALLOC(len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue