mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
Revert "auth: Check if we have any prompts."
This reverts commit 3b5bdc5db4.
It's perfectly legit to have only zero prompts.
This commit is contained in:
@@ -1754,10 +1754,9 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_info_request) {
|
|||||||
|
|
||||||
nprompts = ntohl(nprompts);
|
nprompts = ntohl(nprompts);
|
||||||
ssh_log(session,SSH_LOG_PACKET,"kbdint: %d prompts",nprompts);
|
ssh_log(session,SSH_LOG_PACKET,"kbdint: %d prompts",nprompts);
|
||||||
if (nprompts == 0 ||
|
if (nprompts > KBDINT_MAX_PROMPT) {
|
||||||
nprompts > KBDINT_MAX_PROMPT) {
|
|
||||||
ssh_set_error(session, SSH_FATAL,
|
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);
|
nprompts, nprompts);
|
||||||
ssh_kbdint_free(session->kbdint);
|
ssh_kbdint_free(session->kbdint);
|
||||||
session->kbdint = NULL;
|
session->kbdint = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user