mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 05:08:59 +02:00
ircd::net: Bypass call to current_cipher() on error conditions.
This commit is contained in:
parent
a24d3a1d96
commit
6bf3ccb7b5
1 changed files with 8 additions and 4 deletions
12
ircd/net.cc
12
ircd/net.cc
|
@ -1762,9 +1762,11 @@ noexcept try
|
|||
assert(bool(sock));
|
||||
|
||||
#ifdef RB_DEBUG
|
||||
const auto ¤t_cipher
|
||||
const auto *const current_cipher
|
||||
{
|
||||
openssl::current_cipher(*sock)
|
||||
!ec?
|
||||
openssl::current_cipher(*sock):
|
||||
nullptr
|
||||
};
|
||||
|
||||
thread_local char ecbuf[64];
|
||||
|
@ -3222,9 +3224,11 @@ noexcept try
|
|||
ec = make_error_code(errc::timed_out);
|
||||
|
||||
#ifdef RB_DEBUG
|
||||
const auto ¤t_cipher
|
||||
const auto *const current_cipher
|
||||
{
|
||||
openssl::current_cipher(*this)
|
||||
!ec?
|
||||
openssl::current_cipher(*this):
|
||||
nullptr
|
||||
};
|
||||
|
||||
thread_local char ecbuf[64];
|
||||
|
|
Loading…
Reference in a new issue