I/O exceptions can happen

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

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

Loading…
Cancel
Save