forked from wolfSSL/wolfssl
This commit is contained in:
@ -8707,11 +8707,10 @@ static int SendHandshakeMsg(WOLFSSL* ssl, byte* input, word32 inputSz,
|
|||||||
outputSz += cipherExtraData(ssl);
|
outputSz += cipherExtraData(ssl);
|
||||||
if ((ret = CheckAvailableSize(ssl, outputSz)) != 0)
|
if ((ret = CheckAvailableSize(ssl, outputSz)) != 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
if (ssl->buffers.outputBuffer.buffer == NULL)
|
||||||
|
return MEMORY_E;
|
||||||
output = ssl->buffers.outputBuffer.buffer +
|
output = ssl->buffers.outputBuffer.buffer +
|
||||||
ssl->buffers.outputBuffer.length;
|
ssl->buffers.outputBuffer.length;
|
||||||
/* scan-build complains that this may be null */
|
|
||||||
if (output == NULL)
|
|
||||||
return MEMORY_E;
|
|
||||||
|
|
||||||
if (IsEncryptionOn(ssl, 1)) {
|
if (IsEncryptionOn(ssl, 1)) {
|
||||||
/* First we need to add the fragment header ourselves.
|
/* First we need to add the fragment header ourselves.
|
||||||
|
Reference in New Issue
Block a user