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;
|
localappname += NAMEDATALEN;
|
||||||
localactivity += pgstat_track_activity_query_size;
|
localactivity += pgstat_track_activity_query_size;
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
localsslstatus += sizeof(PgBackendSSLStatus);
|
localsslstatus++;
|
||||||
#endif
|
#endif
|
||||||
localNumBackends++;
|
localNumBackends++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue