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