It turns out I was a little over-strict in my handling of EOF in
[u/mdw/putty] / pgssapi.c
2010-05-19 simonPatch from Alejandro Sedeno, somewhat modified by me...