forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit25fe5ac
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 parent8d2ed66 commit25fe5ac
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 |
| |
| |||
2027 | 2033 |
| |
2028 | 2034 |
| |
2029 | 2035 |
| |
2030 |
| - | |
2031 |
| - | |
2032 |
| - | |
2033 |
| - | |
2034 |
| - | |
2035 | 2036 |
| |
2036 | 2037 |
| |
2037 | 2038 |
| |
| |||
2468 | 2469 |
| |
2469 | 2470 |
| |
2470 | 2471 |
| |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
2471 | 2475 |
| |
2472 | 2476 |
| |
2473 | 2477 |
| |
| |||
3349 | 3353 |
| |
3350 | 3354 |
| |
3351 | 3355 |
| |
3352 |
| - | |
3353 |
| - | |
3354 | 3356 |
| |
3355 | 3357 |
| |
3356 |
| - | |
3357 |
| - | |
3358 | 3358 |
| |
3359 | 3359 |
| |
3360 | 3360 |
| |
| |||
3906 | 3906 |
| |
3907 | 3907 |
| |
3908 | 3908 |
| |
3909 |
| - | |
3910 |
| - | |
3911 |
| - | |
3912 | 3909 |
| |
3913 | 3910 |
| |
3914 | 3911 |
| |
| |||
4065 | 4062 |
| |
4066 | 4063 |
| |
4067 | 4064 |
| |
4068 |
| - | |
4069 |
| - | |
4070 |
| - | |
4071 |
| - | |
4072 |
| - | |
4073 |
| - | |
4074 |
| - | |
4075 |
| - | |
4076 |
| - | |
4077 |
| - | |
4078 |
| - | |
4079 |
| - | |
4080 |
| - | |
4081 |
| - | |
4082 |
| - | |
4083 |
| - | |
4084 | 4065 |
| |
4085 | 4066 |
| |
4086 | 4067 |
| |
|
0 commit comments
Comments
(0)