forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8e6f134
committed
Fix bugs in libpq's management of GSS encryption state.
GSS-related resources should be cleaned up in pqDropConnection,not freePGconn, else the wrong things happen when resettinga connection or trying to switch to a different server.It's also critical to reset conn->gssenc there.During connection setup, initialize conn->try_gss at the correctplace, else switching to a different server won't work right.Remove now-redundant cleanup of GSS resources around one (and, forsome reason, only one) pqDropConnection call in connectDBStart.Per report from Kyotaro Horiguchi that psql would freeze up,rather than successfully resetting a GSS-encrypted connectionafter a server restart.This is YA oversight in commitb0b39f7, so back-patch to v12.Discussion:https://postgr.es/m/20200710.173803.435804731896516388.horikyota.ntt@gmail.com1 parentae29005 commit8e6f134
1 file changed
+9
-28
lines changedLines changed: 9 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
477 | 477 |
| |
478 | 478 |
| |
479 | 479 |
| |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
480 | 485 |
| |
481 | 486 |
| |
482 | 487 |
| |
| |||
496 | 501 |
| |
497 | 502 |
| |
498 | 503 |
| |
| 504 | + | |
499 | 505 |
| |
500 | 506 |
| |
501 | 507 |
| |
| |||
2023 | 2029 |
| |
2024 | 2030 |
| |
2025 | 2031 |
| |
2026 |
| - | |
2027 |
| - | |
2028 |
| - | |
2029 |
| - | |
2030 |
| - | |
2031 | 2032 |
| |
2032 | 2033 |
| |
2033 | 2034 |
| |
| |||
2464 | 2465 |
| |
2465 | 2466 |
| |
2466 | 2467 |
| |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
2467 | 2471 |
| |
2468 | 2472 |
| |
2469 | 2473 |
| |
| |||
3345 | 3349 |
| |
3346 | 3350 |
| |
3347 | 3351 |
| |
3348 |
| - | |
3349 |
| - | |
3350 | 3352 |
| |
3351 | 3353 |
| |
3352 |
| - | |
3353 |
| - | |
3354 | 3354 |
| |
3355 | 3355 |
| |
3356 | 3356 |
| |
| |||
3902 | 3902 |
| |
3903 | 3903 |
| |
3904 | 3904 |
| |
3905 |
| - | |
3906 |
| - | |
3907 |
| - | |
3908 | 3905 |
| |
3909 | 3906 |
| |
3910 | 3907 |
| |
| |||
4061 | 4058 |
| |
4062 | 4059 |
| |
4063 | 4060 |
| |
4064 |
| - | |
4065 |
| - | |
4066 |
| - | |
4067 |
| - | |
4068 |
| - | |
4069 |
| - | |
4070 |
| - | |
4071 |
| - | |
4072 |
| - | |
4073 |
| - | |
4074 |
| - | |
4075 |
| - | |
4076 |
| - | |
4077 |
| - | |
4078 |
| - | |
4079 |
| - | |
4080 | 4061 |
| |
4081 | 4062 |
| |
4082 | 4063 |
| |
|
0 commit comments
Comments
(0)