mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 06:41:32 +02:00
MINOR: quic: Variable used before being checked in ha_quic_add_handshake_data()
This should fix Coverity CID 375058 in GH issue #1536
This commit is contained in:
parent
83cd51e87a
commit
3916ca197e
@ -1078,13 +1078,12 @@ int ha_quic_add_handshake_data(SSL *ssl, enum ssl_encryption_level_t level,
|
|||||||
}
|
}
|
||||||
|
|
||||||
tel = ssl_to_quic_enc_level(level);
|
tel = ssl_to_quic_enc_level(level);
|
||||||
qel = &qc->els[tel];
|
|
||||||
|
|
||||||
if (tel == -1) {
|
if (tel == -1) {
|
||||||
TRACE_PROTO("Wrong encryption level", QUIC_EV_CONN_ADDDATA, qc);
|
TRACE_PROTO("Wrong encryption level", QUIC_EV_CONN_ADDDATA, qc);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qel = &qc->els[tel];
|
||||||
if (!quic_crypto_data_cpy(qel, data, len)) {
|
if (!quic_crypto_data_cpy(qel, data, len)) {
|
||||||
TRACE_PROTO("Could not bufferize", QUIC_EV_CONN_ADDDATA, qc);
|
TRACE_PROTO("Could not bufferize", QUIC_EV_CONN_ADDDATA, qc);
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user