]> git.kaiwu.me - nginx.git/commitdiff
QUIC: style.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 20 Jun 2023 13:59:02 +0000 (17:59 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 20 Jun 2023 13:59:02 +0000 (17:59 +0400)
src/event/quic/ngx_event_quic_protection.c

index 9aa1c3580c443bb0face93feb48ea19054e5e846..9e731e3917ed6099e752e78277b07938db15a8d3 100644 (file)
@@ -352,8 +352,7 @@ failed:
 
 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 @@ ngx_quic_tls_seal(const ngx_quic_cipher_t *cipher, ngx_quic_secret_t *s,
         return NGX_ERROR;
     }
 
-    EVP_CIPHER_CTX_free(ctx);
-
     out->len += NGX_QUIC_TAG_LEN;
+
+    EVP_CIPHER_CTX_free(ctx);
 #endif
+
     return NGX_OK;
 }