increase max memory bucket size to account for larger WOLFSSL structure with sessioncerts

This commit is contained in:
Jacob Barthelmeh
2017-09-06 17:00:40 -06:00
parent a60db81d09
commit 0deaf1e227
2 changed files with 2 additions and 2 deletions

View File

@@ -12147,7 +12147,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
/* check if will fit in current buffer size */
if ((ret = wolfSSL_BIO_get_mem_data(bio, (void*)&buf)) < sz + len) {
if (ret <= 0) {
if (ret < 0) {
return WOLFSSL_BIO_ERROR;
}
else {

View File

@@ -97,7 +97,7 @@ WOLFSSL_API int wolfSSL_GetAllocators(wolfSSL_Malloc_cb*,
#ifndef SESSION_CERTS
#define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,16128
#else
#define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,21616
#define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,21696
#endif
#endif
#ifndef WOLFMEM_DIST