]> granicus.if.org Git - postgresql/commit
Fix crash in pg_replication_slot_advance
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 19 Feb 2018 21:00:53 +0000 (18:00 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 20 Feb 2018 01:25:27 +0000 (22:25 -0300)
commit6f1d723b6359507ef55a81617167507bc25e3e2b
tree23be317dbb87486b56eaf92f94608989385fe726
parent159efe4af4509741c25d6b95ddd9fda86facce42
Fix crash in pg_replication_slot_advance

We were trying to use a LSN variable after releasing its containing slot
structure.

Reported by: tushar
Author: amul sul
Reviewed-by: Petr Jelinek, Masahiko Sawada
Discussion: https://postgr.es/m/94ba999c-f76a-0423-6523-b8d531dfe4c7@enterprisedb.com
src/backend/replication/slotfuncs.c