Fix CRC check handling in get_controlfile

Peter Eisentraut <peter_e@gmx.net>

Commit: e79e6c4da152154544913b38354b98d07b65e411
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2016-09-28T16:00:00Z
Releases: 10.0
Fix CRC check handling in get_controlfile

The previous patch broke this by returning NULL for a failed CRC check,
which pg_controldata would then try to read.  Fix by returning the
result of the CRC check in a separate argument.

Michael Paquier and myself

Files