Skip to content

Commit

Permalink
QUIC: style.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluknet committed Jun 20, 2023
1 parent 68690b0 commit dc9017e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/event/quic/ngx_event_quic_protection.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,7 @@ ngx_hkdf_extract(u_char *out_key, size_t *out_len, const EVP_MD *digest,

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
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit dc9017e

Please sign in to comment.