summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index cf873b8dd..cfc7b60d5 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sshconnect2.c,v 1.90 2001/12/28 12:14:27 markus Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.91 2001/12/28 14:50:54 markus Exp $");
27 27
28#include <openssl/bn.h> 28#include <openssl/bn.h>
29#include <openssl/md5.h> 29#include <openssl/md5.h>
@@ -226,7 +226,6 @@ ssh_userauth2(const char *local_user, const char *server_user, char *host,
226{ 226{
227 Authctxt authctxt; 227 Authctxt authctxt;
228 int type; 228 int type;
229 int plen;
230 229
231 if (options.challenge_response_authentication) 230 if (options.challenge_response_authentication)
232 options.kbd_interactive_authentication = 1; 231 options.kbd_interactive_authentication = 1;
@@ -236,12 +235,12 @@ ssh_userauth2(const char *local_user, const char *server_user, char *host,
236 packet_put_cstring("ssh-userauth"); 235 packet_put_cstring("ssh-userauth");
237 packet_send(); 236 packet_send();
238 packet_write_wait(); 237 packet_write_wait();
239 type = packet_read(&plen); 238 type = packet_read();
240 if (type != SSH2_MSG_SERVICE_ACCEPT) { 239 if (type != SSH2_MSG_SERVICE_ACCEPT) {
241 fatal("denied SSH2_MSG_SERVICE_ACCEPT: %d", type); 240 fatal("denied SSH2_MSG_SERVICE_ACCEPT: %d", type);
242 } 241 }
243 if (packet_remaining() > 0) { 242 if (packet_remaining() > 0) {
244 char *reply = packet_get_string(&plen); 243 char *reply = packet_get_string(NULL);
245 debug("service_accept: %s", reply); 244 debug("service_accept: %s", reply);
246 xfree(reply); 245 xfree(reply);
247 } else { 246 } else {