Skip to content

Commit f3cf8b6

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 1b7f125 commit f3cf8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/postmaster/pgstat.c

+1-1
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)