Commit 7d791ed4 authored by Tom Lane's avatar Tom Lane

Fix pointer-arithmetic thinko in pg_stat_ssl patch.

Nasty memory-stomp bug in commit 9029f4b3.  It's not apparent how
this survived even cursory testing :-(.  Per report from Peter Holzer.
parent 5533a272
......@@ -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++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment