Rename of buffer to tmpbuffer to avoid collision with customer setup test.

This commit is contained in:
Stefan Eissing
2022-08-11 20:06:46 +02:00
parent 53fd4b37f2
commit b3de591c6f

View File

@ -579,17 +579,17 @@ int wolfSSL_quic_do_handshake(WOLFSSL* ssl)
*/
#ifdef WOLFSSL_EARLY_DATA
if (ssl->quic.early_data_enabled) {
byte buffer[256];
byte tmpbuffer[256];
int len;
if (ssl->options.side == WOLFSSL_CLIENT_END) {
if (ssl->options.resuming) {
ret = wolfSSL_write_early_data(ssl, buffer, 0, &len);
ret = wolfSSL_write_early_data(ssl, tmpbuffer, 0, &len);
}
}
else if (/*disables code*/(1)) {
ret = wolfSSL_read_early_data(ssl, buffer,
sizeof(buffer), &len);
ret = wolfSSL_read_early_data(ssl, tmpbuffer,
sizeof(tmpbuffer), &len);
if (ret < 0 && ssl->error == ZERO_RETURN) {
/* this is expected, since QUIC handles the actual early
* data separately. */