mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
QUIC: fixed memory leak in ngx_hkdf_extract()/ngx_hkdf_expand().
This fixes leak on successful path when built with OpenSSL.
This commit is contained in:
parent
0ad83da4f7
commit
b61176b9f7
@ -348,6 +348,8 @@ ngx_hkdf_expand(u_char *out_key, size_t out_len, const EVP_MD *digest,
|
||||
goto failed;
|
||||
}
|
||||
|
||||
EVP_PKEY_CTX_free(pctx);
|
||||
|
||||
return NGX_OK;
|
||||
|
||||
failed:
|
||||
@ -409,6 +411,8 @@ ngx_hkdf_extract(u_char *out_key, size_t *out_len, const EVP_MD *digest,
|
||||
goto failed;
|
||||
}
|
||||
|
||||
EVP_PKEY_CTX_free(pctx);
|
||||
|
||||
return NGX_OK;
|
||||
|
||||
failed:
|
||||
|
Loading…
Reference in New Issue
Block a user