forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6a2c80e
committed
Cope with a deficiency in OpenSSL 3.x's error reporting.
In OpenSSL 3.0.0 and later, ERR_reason_error_string randomly refusesto provide a string for error codes representing system errno values(e.g., "No such file or directory"). There is a poorly-documented wayto extract the errno from the SSL error code in this case, so do thatand apply strerror, rather than falling back to reporting the errorcode's numeric value as we were previously doing.Problem reported by David Zhang, although this is not his proposedpatch; it's instead based on a suggestion from Heikki Linnakangas.Back-patch to all supported branches, since any of them are likelyto be used with recent OpenSSL.Discussion:https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca1 parentdd73d10 commit6a2c80e
File tree
2 files changed
+36
-6
lines changed- src
- backend/libpq
- interfaces/libpq
2 files changed
+36
-6
lines changedLines changed: 16 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1350 | 1350 |
| |
1351 | 1351 |
| |
1352 | 1352 |
| |
1353 |
| - | |
1354 |
| - | |
1355 |
| - | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
1356 | 1356 |
| |
1357 | 1357 |
| |
1358 | 1358 |
| |
| |||
1365 | 1365 |
| |
1366 | 1366 |
| |
1367 | 1367 |
| |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
1368 | 1381 |
| |
1369 | 1382 |
| |
1370 | 1383 |
| |
|
Lines changed: 20 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1675 | 1675 |
| |
1676 | 1676 |
| |
1677 | 1677 |
| |
| 1678 | + | |
1678 | 1679 |
| |
1679 |
| - | |
1680 |
| - | |
1681 |
| - | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
1682 | 1683 |
| |
1683 | 1684 |
| |
1684 | 1685 |
| |
| |||
1704 | 1705 |
| |
1705 | 1706 |
| |
1706 | 1707 |
| |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
1707 | 1724 |
| |
1708 | 1725 |
| |
1709 | 1726 |
| |
|
0 commit comments
Comments
(0)