mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Merge pull request #637 from JacobBarthelmeh/master
PKCS12 : return on memory error
This commit is contained in:
@@ -920,6 +920,7 @@ int wc_PKCS12_parse(WC_PKCS12* pkcs12, const char* psw,
|
|||||||
if (k == NULL) {
|
if (k == NULL) {
|
||||||
freeBuffers(*pkey, buf, pkcs12->heap);
|
freeBuffers(*pkey, buf, pkcs12->heap);
|
||||||
freeCertList(certList, pkcs12->heap);
|
freeCertList(certList, pkcs12->heap);
|
||||||
|
return MEMORY_E;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
size = ret;
|
size = ret;
|
||||||
|
Reference in New Issue
Block a user