update dynamic type when freeing bio mem

This commit is contained in:
Jacob Barthelmeh
2017-04-21 13:33:00 -06:00
parent 39126cbb63
commit 248dce258e

View File

@@ -966,7 +966,7 @@ int wolfSSL_BIO_reset(WOLFSSL_BIO *bio)
bio->rdIdx = 0; bio->rdIdx = 0;
bio->wrIdx = 0; bio->wrIdx = 0;
bio->wrSz = 0; bio->wrSz = 0;
XFREE(bio->mem, bio->heap, DYNAMIC_TYPE_BIO); XFREE(bio->mem, bio->heap, DYNAMIC_TYPE_OPENSSL);
bio->mem = NULL; bio->mem = NULL;
bio->memLen = 0; bio->memLen = 0;
if (bio->mem_buf != NULL) { if (bio->mem_buf != NULL) {