diff options
| author | Tom Lane | 2020-10-16 15:59:13 +0000 |
|---|---|---|
| committer | Tom Lane | 2020-10-16 15:59:36 +0000 |
| commit | 1eb2d7e3ea8ef683d29b4f0a81b6f21662edd1e7 (patch) | |
| tree | 239fdee26941a9ce0ef28fc2c911f889c876dd6a /src | |
| parent | b1452f5c09f055e8511fdcaf26c7b267cbbf6b4f (diff) | |
Add missing error check in pgcrypto/crypt-md5.c.
In theory, the second px_find_digest call in px_crypt_md5 could fail
even though the first one succeeded, since resource allocation is
required. Don't skip testing for a failure. (If one did happen,
the likely result would be a crash rather than clean recovery from
an OOM failure.)
The code's been like this all along, so back-patch to all supported
branches.
Daniel Gustafsson
Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
