Fix for ProcessUserChain with WOLFSSL_SMALL_STACK defined causing stack corruption.

This commit is contained in:
David Garske
2017-02-21 10:38:44 -08:00
parent db1f205522
commit f0112c2f7d

View File

@@ -3932,7 +3932,7 @@ static int ProcessUserChain(WOLFSSL_CTX* ctx, const unsigned char* buff,
#endif
byte* chainBuffer = staticBuffer;
int dynamicBuffer = 0;
word32 bufferSz = FILE_BUFFER_SIZE;
word32 bufferSz = sizeof(staticBuffer);
long consumed = info->consumed;
word32 idx = 0;
int gotOne = 0;