Fix two thinkos related to strong random keys.
pg_backend_random() is used for MD5 salt generation, but it can fail, and
no checks were done on its status code.
Fix memory leak, if generating a random number for a cancel key failed.
Both issues were spotted by Coverity. Fix by Michael Paquier.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/41493bac36575c93172644d0eab7045aed8dcc17
Modified Files
--------------
src/backend/libpq/auth.c | 7 ++++++-
src/backend/postmaster/postmaster.c | 1 +
2 files changed, 7 insertions(+), 1 deletion(-)