mirror of
https://github.com/openssl/openssl.git
synced 2025-02-11 14:22:43 +08:00
QUIC: Fix SSL_ctrl operation for QSSOs
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23581)
This commit is contained in:
parent
cf57c3ecfa
commit
5c16e9d384
@ -2906,9 +2906,6 @@ long ossl_ctrl_internal(SSL *s, int cmd, long larg, void *parg, int no_quic)
|
||||
long l;
|
||||
SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
|
||||
|
||||
if (sc == NULL)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* Routing of ctrl calls for QUIC is a little counterintuitive:
|
||||
*
|
||||
@ -2927,6 +2924,9 @@ long ossl_ctrl_internal(SSL *s, int cmd, long larg, void *parg, int no_quic)
|
||||
if (!no_quic && IS_QUIC(s))
|
||||
return s->method->ssl_ctrl(s, cmd, larg, parg);
|
||||
|
||||
if (sc == NULL)
|
||||
return 0;
|
||||
|
||||
switch (cmd) {
|
||||
case SSL_CTRL_GET_READ_AHEAD:
|
||||
return RECORD_LAYER_get_read_ahead(&sc->rlayer);
|
||||
|
Loading…
Reference in New Issue
Block a user