John, Thank you for your efforts.
Please try if the attached patch fixes the bug. It is taken from a 6.2.9-pre* release. AFAIR, the patch was sent by Goswin von Brederlow. -- Matthias Andree
--- driver.c (Revision 4126) +++ driver.c (Revision 4127) @@ -1161,5 +1161,5 @@ report(stderr, GT_("SSL connection failed.\n")); err = PS_AUTHFAIL; - goto closeUp; + goto cleanUp; }