Commit ad7a553
committed
Do not send extra ssh_message_reply_default()
Keyboard-interactive sends a reply when it initializes, in which
case we should manipulate connection state: we have not succeeded
in auth nor have we failed.
This state needs to be recognized, so we do not call
ssh_message_reply_default(), as that translates in an immediate
SSH_MSG_USERAUTH_FAILURE, which means on retry this message will
leak into the open session, where it is not a valid command.
Change auth_ret into a tri-state, with a new -1 state.
Fixes #68.
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>1 parent 1b1d2a5 commit ad7a553
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| 858 | + | |
858 | 859 | | |
859 | 860 | | |
860 | 861 | | |
861 | 862 | | |
862 | 863 | | |
863 | 864 | | |
864 | 865 | | |
865 | | - | |
| 866 | + | |
| 867 | + | |
866 | 868 | | |
867 | 869 | | |
868 | 870 | | |
869 | 871 | | |
870 | 872 | | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
871 | 878 | | |
872 | 879 | | |
873 | 880 | | |
| |||
0 commit comments