mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +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,
|
ret = ProcessBufferCertTypes(ctx, ssl, buff, sz, der, format, type,
|
||||||
verify);
|
verify);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
FreeDer(&der);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset suites if this is a private key or user certificate. */
|
/* Reset suites if this is a private key or user certificate. */
|
||||||
|
Reference in New Issue
Block a user