mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mbedtls: some versions need x509 overallocation
This commit is contained in:
parent
cf7862dd3c
commit
2d48f559f0
1 changed files with 1 additions and 1 deletions
|
@ -659,7 +659,7 @@ int x509_pm_load(X509 *x, const unsigned char *buffer, int len)
|
|||
struct x509_pm *x509_pm = (struct x509_pm *)x->x509_pm;
|
||||
|
||||
if (!x509_pm->x509_crt) {
|
||||
x509_pm->x509_crt = ssl_mem_malloc(sizeof(mbedtls_x509_crt));
|
||||
x509_pm->x509_crt = ssl_mem_malloc(sizeof(mbedtls_x509_crt) + 80);
|
||||
if (!x509_pm->x509_crt) {
|
||||
SSL_DEBUG(SSL_PLATFORM_ERROR_LEVEL, "no enough memory > (x509_pm->x509_crt)");
|
||||
goto no_mem;
|
||||
|
|
Loading…
Add table
Reference in a new issue