diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-14 20:36:23 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-14 20:36:23 +0200 |
commit | 33cf16488bcf417306d9de8540bba5296247eb65 (patch) | |
tree | 3f56f4be0af324652b00843d9410d8823e2ce271 | |
parent | 0fa88fdcfec1ee4cfc8f9d1708803521d546c574 (diff) | |
download | libssh-33cf16488bcf417306d9de8540bba5296247eb65.tar.gz libssh-33cf16488bcf417306d9de8540bba5296247eb65.tar.xz libssh-33cf16488bcf417306d9de8540bba5296247eb65.zip |
Revert "auth: Check if we have any prompts."
This reverts commit 3b5bdc5db440b8bf2d142631cac44c4eb052e7bc.
It's perfectly legit to have only zero prompts.
-rw-r--r-- | src/auth.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1754,10 +1754,9 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_info_request) { nprompts = ntohl(nprompts); ssh_log(session,SSH_LOG_PACKET,"kbdint: %d prompts",nprompts); - if (nprompts == 0 || - nprompts > KBDINT_MAX_PROMPT) { + if (nprompts > KBDINT_MAX_PROMPT) { ssh_set_error(session, SSH_FATAL, - "Wrong number of prompts requested by the server: %u (0x%.4x)", + "Too much prompt asked from server: %u (0x%.4x)", nprompts, nprompts); ssh_kbdint_free(session->kbdint); session->kbdint = NULL; |