- Notifications
You must be signed in to change notification settings - Fork28
Commitc46c85d
committed
Handle errors during GSSAPI startup better
There was some confusion over the format of the error message returnedfrom the server during GSSAPI startup; specifically, it was expectedthat a length would be returned when, in reality, at this early stage inthe startup sequence, no length is returned from the server as part ofan error message.Correct the client-side code for dealing with error messages sent by theserver during startup by simply reading what's available into ourbuffer, after we've discovered it's an error message, and then reportingback what was returned.In passing, also add in documentation of the environment variablePGGSSENCMODE which was missed previously, and adjust the code to lookfor the PGGSSENCMODE variable (the environment variable change wasmissed in the prior GSSMODE -> GSSENCMODE commit).Error-handling issue discovered by Peter Eisentraut, the rest were itemsdiscovered during testing of the error handling.1 parentbfc8068 commitc46c85d
File tree
3 files changed
+20
-28
lines changed- doc/src/sgml
- src/interfaces/libpq
3 files changed
+20
-28
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7495 | 7495 |
| |
7496 | 7496 |
| |
7497 | 7497 |
| |
| 7498 | + | |
| 7499 | + | |
| 7500 | + | |
| 7501 | + | |
| 7502 | + | |
| 7503 | + | |
| 7504 | + | |
| 7505 | + | |
| 7506 | + | |
| 7507 | + | |
7498 | 7508 |
| |
7499 | 7509 |
| |
7500 | 7510 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
311 |
| - | |
| 311 | + | |
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
| |||
1875 | 1875 |
| |
1876 | 1876 |
| |
1877 | 1877 |
| |
1878 |
| - | |
| 1878 | + | |
1879 | 1879 |
| |
1880 | 1880 |
| |
1881 | 1881 |
| |
|
Lines changed: 8 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
459 | 459 |
| |
460 | 460 |
| |
461 | 461 |
| |
462 |
| - | |
| 462 | + | |
| 463 | + | |
463 | 464 |
| |
464 | 465 |
| |
465 | 466 |
| |
466 | 467 |
| |
467 |
| - | |
468 |
| - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
469 | 472 |
| |
470 |
| - | |
| 473 | + | |
471 | 474 |
| |
472 | 475 |
| |
473 | 476 |
| |
474 | 477 |
| |
475 | 478 |
| |
476 |
| - | |
477 |
| - | |
478 |
| - | |
479 |
| - | |
480 |
| - | |
481 |
| - | |
482 |
| - | |
483 |
| - | |
484 |
| - | |
485 |
| - | |
486 |
| - | |
487 |
| - | |
488 |
| - | |
489 |
| - | |
490 |
| - | |
491 |
| - | |
492 |
| - | |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 |
| - | |
| 479 | + | |
498 | 480 |
| |
499 | 481 |
| |
500 | 482 |
| |
|
0 commit comments
Comments
(0)