X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fssl_lib.c;h=deb040e5efd459bb67897e16246350951686b456;hp=39a334c98962a64c1a5a6725a0cdec08872cea6a;hb=e30c502ae930295b889cce7375a83a8c742c68b4;hpb=4e392f601db9a5a131d0db8fa3fa2e3808d2770a diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 39a334c989..deb040e5ef 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -4411,6 +4411,14 @@ int SSL_get_error(const SSL *s, int i) if (i > 0) return SSL_ERROR_NONE; +#ifndef OPENSSL_NO_QUIC + if (qc != NULL) { + reason = ossl_quic_get_error(qc, i); + if (reason != SSL_ERROR_NONE) + return reason; + } +#endif + if (sc == NULL) return SSL_ERROR_SSL; @@ -4425,14 +4433,6 @@ int SSL_get_error(const SSL *s, int i) return SSL_ERROR_SSL; } -#ifndef OPENSSL_NO_QUIC - if (qc != NULL) { - reason = ossl_quic_get_error(qc, i); - if (reason != SSL_ERROR_NONE) - return reason; - } -#endif - #ifndef OPENSSL_NO_QUIC if (qc == NULL) #endif