diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index c022597bc09..edfa774ee40 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -2989,7 +2989,7 @@ pgstat_bestart(void) MemSet(&lbeentry.st_clientaddr, 0, sizeof(lbeentry.st_clientaddr)); #ifdef USE_SSL - if (MyProcPort && MyProcPort->ssl != NULL) + if (MyProcPort && MyProcPort->ssl_in_use) { lbeentry.st_ssl = true; lsslstatus.ssl_bits = be_tls_get_cipher_bits(MyProcPort);