I/O exceptions can happen

pull/208/head
M66B 2 years ago
parent d2d6ac8ab6
commit beb1ce0e05

@ -486,10 +486,15 @@ class Protocol {
doAuth(host, authzid, user, passwd);
} catch (IOException ex) { // should never happen, ignore
logger.log(Level.FINE, "AUTH " + mech + " failed", ex);
thrown = ex;
} catch (Throwable t) { // crypto can't be initialized?
logger.log(Level.FINE, "AUTH " + mech + " failed", t);
thrown = t;
} finally {
if (thrown instanceof IOException) {
close();
throw (IOException) thrown;
}
if (noauthdebug && isTracing())
logger.fine("AUTH " + mech + " " +
(resp.ok ? "succeeded" : "failed"));

Loading…
Cancel
Save