Commit 6a5c750f authored by Magnus Hagander's avatar Magnus Hagander

Check ssl_in_use flag when reporting statistics

Previously we checked that the ssl pointer was not null, but this puts a
requirement on there being such a pointer which may not be true in
future multi-ssl-library supporting times. This seems to have been an
oversight in 9029f4b3, but hasn't really had any effect since we only
have one library.

Author: Daniel Gustafsson
parent 71ec58e7
...@@ -2989,7 +2989,7 @@ pgstat_bestart(void) ...@@ -2989,7 +2989,7 @@ pgstat_bestart(void)
MemSet(&lbeentry.st_clientaddr, 0, sizeof(lbeentry.st_clientaddr)); MemSet(&lbeentry.st_clientaddr, 0, sizeof(lbeentry.st_clientaddr));
#ifdef USE_SSL #ifdef USE_SSL
if (MyProcPort && MyProcPort->ssl != NULL) if (MyProcPort && MyProcPort->ssl_in_use)
{ {
lbeentry.st_ssl = true; lbeentry.st_ssl = true;
lsslstatus.ssl_bits = be_tls_get_cipher_bits(MyProcPort); lsslstatus.ssl_bits = be_tls_get_cipher_bits(MyProcPort);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment