Skip to content

Commit 7d791ed

Browse files
committed
Fix pointer-arithmetic thinko in pg_stat_ssl patch.
Nasty memory-stomp bug in commit 9029f4b. It's not apparent how this survived even cursory testing :-(. Per report from Peter Holzer.
1 parent 5533a27 commit 7d791ed

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
@@ -3024,7 +3024,7 @@ pgstat_read_current_status(void)
30243024
localappname += NAMEDATALEN;
30253025
localactivity += pgstat_track_activity_query_size;
30263026
#ifdef USE_SSL
3027-
localsslstatus += sizeof(PgBackendSSLStatus);
3027+
localsslstatus++;
30283028
#endif
30293029
localNumBackends++;
30303030
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy