wolfssl
wolfssl copied to clipboard
Add null check to wolfSSL_Free
trafficstars
Description
If wolfSSL_Free() determines that the ‘heap’ argument is not NULL, it goes on to the ‘else’ statement of memory.c, where it executes the following: 'wc_LockMutex(&(mem->memory_mutex)’ without checking whether ‘mem’ (AKA hint->memory) is NULL.
Fixes zd17779
Testing
Customer confirmed
Checklist
- [ ] added tests
- [ ] updated/added doxygen
- [ ] updated appropriate READMEs
- [ ] Updated manual and documentation
Retest this please
@embhorn please resolve new conflicts. @JacobBarthelmeh please merge when you are happy with PR.
retest this please