Skip to content

Commit 6a5c750

Browse files
committed
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 9029f4b, but hasn't really had any effect since we only have one library. Author: Daniel Gustafsson
1 parent 71ec58e commit 6a5c750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2989,7 +2989,7 @@ pgstat_bestart(void)
29892989
MemSet(&lbeentry.st_clientaddr, 0, sizeof(lbeentry.st_clientaddr));
29902990

29912991
#ifdef USE_SSL
2992-
if (MyProcPort && MyProcPort->ssl != NULL)
2992+
if (MyProcPort && MyProcPort->ssl_in_use)
29932993
{
29942994
lbeentry.st_ssl = true;
29952995
lsslstatus.ssl_bits = be_tls_get_cipher_bits(MyProcPort);

0 commit comments

Comments
 (0)