diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2016-12-12 09:58:32 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2016-12-12 09:58:32 +0200 |
commit | 41493bac36575c93172644d0eab7045aed8dcc17 (patch) | |
tree | 8ff86758463e3227a4f5bdefd4956509125273d7 /src/backend/tcop/postgres.c | |
parent | ad365b2f91dc57ed1f18839f9f59a2799d276c8d (diff) | |
download | postgresql-41493bac36575c93172644d0eab7045aed8dcc17.tar.gz postgresql-41493bac36575c93172644d0eab7045aed8dcc17.zip |
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions