forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite0a09d4
committed
Fix inconsistent error handling for GSS encryption in PQconnectPoll()
The error cases for TLS and GSS encryption were inconsistent. After TLSfails, the connection is marked as dead and follow-up calls ofPQconnectPoll() would return immediately, but GSS encryption was notdoing that, so the connection would still have been allowed to enter theGSS handling code. This was handled incorrectly when gssencmode was setto "require". "prefer" was working correctly, and this could not happenunder "disable" as GSS encryption would not be attempted.This commit makes the error handling of GSS encryption on par with TLSportion, fixing the case of gssencmode=require.Reported-by: Jacob ChampionAuthor: Michael PaquierReviewed-by: Jacob Champion, Stephen FrostDiscussion:https://postgr.es/m/23787477-5fe1-a161-6d2a-e459f74c4713@timescale.comBackpatch-through: 121 parentbf32ec2 commite0a09d4
1 file changed
+14
-9
lines changedLines changed: 14 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3148 | 3148 |
| |
3149 | 3149 |
| |
3150 | 3150 |
| |
3151 |
| - | |
3152 |
| - | |
| 3151 | + | |
3153 | 3152 |
| |
3154 |
| - | |
3155 |
| - | |
3156 |
| - | |
3157 |
| - | |
3158 |
| - | |
3159 |
| - | |
3160 |
| - | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
3161 | 3165 |
| |
| 3166 | + | |
3162 | 3167 |
| |
3163 | 3168 |
| |
3164 | 3169 |
| |
|
0 commit comments
Comments
(0)