mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Mem fail fix: ProcessingBuffer()
When ProcessBufferCertTypes() is not called, 'der' is not freed.
This commit is contained in:
@ -2352,6 +2352,9 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff, long sz,
|
||||
ret = ProcessBufferCertTypes(ctx, ssl, buff, sz, der, format, type,
|
||||
verify);
|
||||
}
|
||||
else {
|
||||
FreeDer(&der);
|
||||
}
|
||||
}
|
||||
|
||||
/* Reset suites if this is a private key or user certificate. */
|
||||
|
Reference in New Issue
Block a user