1
0
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:
Aris Adamantiadis
2011-09-14 20:36:23 +02:00
parent 0fa88fdcfe
commit 33cf16488b

View File

@@ -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;