forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit22e1943
committed
pgcrypto: Check for error return of px_cipher_decrypt()
This has previously not been a problem (that anyone ever reported),but in future OpenSSL versions (3.0.0), where legacy ciphers are/canbe disabled, this is the place where this is reported. So we need tocatch the error here, otherwise the higher-level functions wouldreturn garbage. The nearby encryption code already handled errorssimilarly.Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Discussion:https://www.postgresql.org/message-id/9e9c431c-0adc-7a6d-9b1a-915de1ba3fe7@enterprisedb.com1 parenta6715af commit22e1943
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
| 295 | + | |
295 | 296 |
| |
296 | 297 |
| |
297 | 298 |
| |
| |||
317 | 318 |
| |
318 | 319 |
| |
319 | 320 |
| |
320 |
| - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
321 | 324 |
| |
322 | 325 |
| |
323 | 326 |
| |
|
0 commit comments
Comments
(0)