Merge pull request #6949 from bigbrett/zd16925
fix WOLFSSL_CALLBACK memory error
This commit is contained in:
commit
2b1c61a013
@ -3392,7 +3392,14 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
} while (err == WC_PENDING_E);
|
||||
}
|
||||
#else
|
||||
(void)nonBlocking;
|
||||
if (nonBlocking) {
|
||||
#ifdef WOLFSSL_DTLS
|
||||
if (doDTLS) {
|
||||
wolfSSL_dtls_set_using_nonblock(ssl, 1);
|
||||
}
|
||||
#endif
|
||||
tcp_set_nonblocking(&clientfd);
|
||||
}
|
||||
ret = NonBlockingSSL_Accept(ssl);
|
||||
#endif
|
||||
#ifdef WOLFSSL_EARLY_DATA
|
||||
|
@ -26872,7 +26872,7 @@ int PickHashSigAlgo(WOLFSSL* ssl, const byte* hashSigAlgo, word32 hashSigAlgoSz)
|
||||
/* add data, put in buffer if bigger than static buffer */
|
||||
info->packets[info->numberPackets].valueSz = totalSz;
|
||||
if (totalSz < MAX_VALUE_SZ) {
|
||||
XMEMCPY(info->packets[info->numberPackets].value, data + lateRL,
|
||||
XMEMCPY(info->packets[info->numberPackets].value + lateRL, data,
|
||||
sz);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user