]> granicus.if.org Git - postgresql/commit
Correct pg_recvlogical server version test.
authorNoah Misch <noah@leadboat.com>
Thu, 26 Apr 2018 01:50:29 +0000 (18:50 -0700)
committerNoah Misch <noah@leadboat.com>
Thu, 26 Apr 2018 01:50:33 +0000 (18:50 -0700)
commit24f1e9ca0b9261dd6ae3c16cebbcc572732f3587
tree2ebd782efdf53998726a850210ac003fe05c57fd
parent168df1b844d3ff0f8ae392f9d3a6cdcaf9f76311
Correct pg_recvlogical server version test.

The predecessor test boiled down to "PQserverVersion(NULL) >= 100000",
which is always false.  No release includes that, so it could not have
reintroduced CVE-2018-1058.  Back-patch to 9.4, like the addition of the
predecessor in commit 8d2814f274def85f39fbe997d454b01628cb5667.

Discussion: https://postgr.es/m/20180422215551.GB2676194@rfd.leadboat.com
src/bin/pg_basebackup/streamutil.c