OCSP callback: call embed free

Leaks memory if not called.

Configuration:
	./configure --disable-shared --enable-ocsp --enable-sni
C_EXTRA_FLAGS="-DWOLFSSL_NONBLOCK_OCSP"
Leaking test:
	valgrind ./examples/client/client -X -C -h www.globalsign.com -p
443 -A certs/external/ca-globalsign-root.pem -g -o -N -v d -S
www.globalsign.com
pull/3524/head
Sean Parkinson 2020-11-27 09:16:24 +10:00
parent 84a9e16805
commit 40154d69cf
1 changed files with 1 additions and 2 deletions

View File

@ -1592,8 +1592,7 @@ static WC_INLINE int OCSPIOCb(void* ioCtx, const char* url, int urlSz,
static WC_INLINE void OCSPRespFreeCb(void* ioCtx, unsigned char* response)
{
(void)ioCtx;
(void)response;
return EmbedOcspRespFree(ioCtx, response);
}
#endif