Mercurial > hg > nginx
changeset 9130:0f23488a9f5a
QUIC: style.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 20 Jun 2023 17:59:02 +0400 |
parents | 7379cb29cd72 |
children | f73dfa6c0696 |
files | src/event/quic/ngx_event_quic_protection.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_protection.c Tue Jun 20 17:59:01 2023 +0400 +++ b/src/event/quic/ngx_event_quic_protection.c Tue Jun 20 17:59:02 2023 +0400 @@ -352,8 +352,7 @@ static ngx_int_t ngx_quic_tls_open(const ngx_quic_cipher_t *cipher, ngx_quic_secret_t *s, - ngx_str_t *out, u_char *nonce, ngx_str_t *in, ngx_str_t *ad, - ngx_log_t *log) + ngx_str_t *out, u_char *nonce, ngx_str_t *in, ngx_str_t *ad, ngx_log_t *log) { #ifdef OPENSSL_IS_BORINGSSL @@ -563,10 +562,11 @@ return NGX_ERROR; } - EVP_CIPHER_CTX_free(ctx); + out->len += NGX_QUIC_TAG_LEN; - out->len += NGX_QUIC_TAG_LEN; + EVP_CIPHER_CTX_free(ctx); #endif + return NGX_OK; }