This commit is contained in:
Juliusz Sosinowicz
2021-10-15 17:10:28 +02:00
parent e82ae7b072
commit 74cf332a8b

View File

@ -8707,11 +8707,10 @@ static int SendHandshakeMsg(WOLFSSL* ssl, byte* input, word32 inputSz,
outputSz += cipherExtraData(ssl);
if ((ret = CheckAvailableSize(ssl, outputSz)) != 0)
return ret;
if (ssl->buffers.outputBuffer.buffer == NULL)
return MEMORY_E;
output = ssl->buffers.outputBuffer.buffer +
ssl->buffers.outputBuffer.length;
/* scan-build complains that this may be null */
if (output == NULL)
return MEMORY_E;
if (IsEncryptionOn(ssl, 1)) {
/* First we need to add the fragment header ourselves.