mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Fix pointer-arithmetic thinko in pg_stat_ssl patch.
Nasty memory-stomp bug in commit 9029f4b374
. It's not apparent how
this survived even cursory testing :-(. Per report from Peter Holzer.
This commit is contained in:
parent
5533a272dd
commit
7d791ed49b
@ -3024,7 +3024,7 @@ pgstat_read_current_status(void)
|
||||
localappname += NAMEDATALEN;
|
||||
localactivity += pgstat_track_activity_query_size;
|
||||
#ifdef USE_SSL
|
||||
localsslstatus += sizeof(PgBackendSSLStatus);
|
||||
localsslstatus++;
|
||||
#endif
|
||||
localNumBackends++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user