[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] server: fix auth_interactive_request reply


From 91e72cf8a26893ccd24a33c8db804dd8ec82a85f Mon Sep 17 00:00:00 2001
From: Jon Simons <jon@xxxxxxxxxxxxx>
Date: Sat, 27 Sep 2014 21:22:53 -0700
Subject: [PATCH] server: fix auth_interactive_request reply

Fix a missing 'buffer_pack' formatter in 'ssh_message_auth_interactive_request'.
With this fix the 'examples/samplesshd-kbdint' program is working again for me.

Signed-off-by: Jon Simons <jon@xxxxxxxxxxxxx>
---
 src/server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/server.c b/src/server.c
index 74688df..3a38fc7 100644
--- a/src/server.c
+++ b/src/server.c
@@ -876,7 +876,7 @@ int ssh_message_auth_interactive_request(ssh_message msg, const char *name,
   }
 
   rc = ssh_buffer_pack(msg->session->out_buffer,
-                       "bsss",
+                       "bsssd",
                        SSH2_MSG_USERAUTH_INFO_REQUEST,
                        name,
                        instruction,
-- 
2.1.1.308.gd29e9c8


Archive administrator: postmaster@lists.cynapses.org