diff options
author | Heikki Linnakangas | 2016-12-12 07:58:32 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2016-12-12 07:58:32 +0000 |
commit | 41493bac36575c93172644d0eab7045aed8dcc17 (patch) | |
tree | 8ff86758463e3227a4f5bdefd4956509125273d7 /contrib/pgcrypto/pgp-encrypt.c | |
parent | ad365b2f91dc57ed1f18839f9f59a2799d276c8d (diff) |
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 'contrib/pgcrypto/pgp-encrypt.c')
0 files changed, 0 insertions, 0 deletions