mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
asn.c memory leak fix.
This commit is contained in:
@ -9449,6 +9449,7 @@ int wc_SetKeyUsage(Cert *cert, const char *value)
|
||||
|
||||
/* parse value, and set corresponding Key Usage value */
|
||||
if ((token = XSTRTOK(str, ",", &ptr)) == NULL) {
|
||||
XFREE(str, cert->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
return KEYUSAGE_E;
|
||||
}
|
||||
while (token != NULL)
|
||||
|
Reference in New Issue
Block a user