forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite8b22a8
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 parent5fea14f commite8b22a8
1 file changed
+9
-28
lines changedLines changed: 9 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
458 | 463 |
| |
459 | 464 |
| |
460 | 465 |
| |
| |||
474 | 479 |
| |
475 | 480 |
| |
476 | 481 |
| |
| 482 | + | |
477 | 483 |
| |
478 | 484 |
| |
479 | 485 |
| |
| |||
1936 | 1942 |
| |
1937 | 1943 |
| |
1938 | 1944 |
| |
1939 |
| - | |
1940 |
| - | |
1941 |
| - | |
1942 |
| - | |
1943 |
| - | |
1944 | 1945 |
| |
1945 | 1946 |
| |
1946 | 1947 |
| |
| |||
2380 | 2381 |
| |
2381 | 2382 |
| |
2382 | 2383 |
| |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
2383 | 2387 |
| |
2384 | 2388 |
| |
2385 | 2389 |
| |
| |||
3259 | 3263 |
| |
3260 | 3264 |
| |
3261 | 3265 |
| |
3262 |
| - | |
3263 |
| - | |
3264 | 3266 |
| |
3265 | 3267 |
| |
3266 |
| - | |
3267 |
| - | |
3268 | 3268 |
| |
3269 | 3269 |
| |
3270 | 3270 |
| |
| |||
3838 | 3838 |
| |
3839 | 3839 |
| |
3840 | 3840 |
| |
3841 |
| - | |
3842 |
| - | |
3843 |
| - | |
3844 | 3841 |
| |
3845 | 3842 |
| |
3846 | 3843 |
| |
| |||
3980 | 3977 |
| |
3981 | 3978 |
| |
3982 | 3979 |
| |
3983 |
| - | |
3984 |
| - | |
3985 |
| - | |
3986 |
| - | |
3987 |
| - | |
3988 |
| - | |
3989 |
| - | |
3990 |
| - | |
3991 |
| - | |
3992 |
| - | |
3993 |
| - | |
3994 |
| - | |
3995 |
| - | |
3996 |
| - | |
3997 |
| - | |
3998 |
| - | |
3999 | 3980 |
| |
4000 | 3981 |
| |
4001 | 3982 |
| |
|
0 commit comments
Comments
(0)