mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
a hidden bug
This commit is contained in:
@@ -42,8 +42,7 @@ public class UserAuthImpl
|
|||||||
|
|
||||||
private final Deque<UserAuthException> savedEx = new ArrayDeque<UserAuthException>();
|
private final Deque<UserAuthException> savedEx = new ArrayDeque<UserAuthException>();
|
||||||
|
|
||||||
private final Event<UserAuthException> result = new Event<UserAuthException>("userauth result",
|
private final Event<UserAuthException> result = new Event<UserAuthException>("userauth result", UserAuthException.chainer);
|
||||||
UserAuthException.chainer);
|
|
||||||
|
|
||||||
private String username;
|
private String username;
|
||||||
private AuthMethod currentMethod;
|
private AuthMethod currentMethod;
|
||||||
@@ -99,7 +98,7 @@ public class UserAuthImpl
|
|||||||
log.info("`{}` auth failed", meth.getName());
|
log.info("`{}` auth failed", meth.getName());
|
||||||
|
|
||||||
} else
|
} else
|
||||||
saveException(currentMethod.getName() + " auth not allowed by server");
|
saveException(meth.getName() + " auth not allowed by server");
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
currentMethod = null;
|
currentMethod = null;
|
||||||
@@ -146,7 +145,6 @@ public class UserAuthImpl
|
|||||||
throw new TransportException(DisconnectReason.PROTOCOL_ERROR);
|
throw new TransportException(DisconnectReason.PROTOCOL_ERROR);
|
||||||
|
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
|
|
||||||
case USERAUTH_BANNER:
|
case USERAUTH_BANNER:
|
||||||
gotBanner(buf);
|
gotBanner(buf);
|
||||||
break;
|
break;
|
||||||
@@ -161,7 +159,6 @@ public class UserAuthImpl
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
gotUnknown(msg, buf);
|
gotUnknown(msg, buf);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user