diff options
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index d7143cd18..cf873b8dd 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: sshconnect2.c,v 1.89 2001/12/20 22:50:24 djm Exp $"); | 26 | RCSID("$OpenBSD: sshconnect2.c,v 1.90 2001/12/28 12:14:27 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/bn.h> | 28 | #include <openssl/bn.h> |
29 | #include <openssl/md5.h> | 29 | #include <openssl/md5.h> |
@@ -247,7 +247,7 @@ ssh_userauth2(const char *local_user, const char *server_user, char *host, | |||
247 | } else { | 247 | } else { |
248 | debug("buggy server: service_accept w/o service"); | 248 | debug("buggy server: service_accept w/o service"); |
249 | } | 249 | } |
250 | packet_done(); | 250 | packet_check_eom(); |
251 | debug("got SSH2_MSG_SERVICE_ACCEPT"); | 251 | debug("got SSH2_MSG_SERVICE_ACCEPT"); |
252 | 252 | ||
253 | if (options.preferred_authentications == NULL) | 253 | if (options.preferred_authentications == NULL) |
@@ -347,7 +347,7 @@ input_userauth_failure(int type, int plen, u_int32_t seq, void *ctxt) | |||
347 | 347 | ||
348 | authlist = packet_get_string(NULL); | 348 | authlist = packet_get_string(NULL); |
349 | partial = packet_get_char(); | 349 | partial = packet_get_char(); |
350 | packet_done(); | 350 | packet_check_eom(); |
351 | 351 | ||
352 | if (partial != 0) | 352 | if (partial != 0) |
353 | log("Authenticated with partial success."); | 353 | log("Authenticated with partial success."); |
@@ -379,7 +379,7 @@ input_userauth_pk_ok(int type, int plen, u_int32_t seq, void *ctxt) | |||
379 | pkalg = packet_get_string(&alen); | 379 | pkalg = packet_get_string(&alen); |
380 | pkblob = packet_get_string(&blen); | 380 | pkblob = packet_get_string(&blen); |
381 | } | 381 | } |
382 | packet_done(); | 382 | packet_check_eom(); |
383 | 383 | ||
384 | debug("input_userauth_pk_ok: pkalg %s blen %d lastkey %p hint %d", | 384 | debug("input_userauth_pk_ok: pkalg %s blen %d lastkey %p hint %d", |
385 | pkalg, blen, authctxt->last_key, authctxt->last_key_hint); | 385 | pkalg, blen, authctxt->last_key, authctxt->last_key_hint); |
@@ -815,7 +815,7 @@ input_userauth_info_req(int type, int plen, u_int32_t seq, void *ctxt) | |||
815 | xfree(response); | 815 | xfree(response); |
816 | xfree(prompt); | 816 | xfree(prompt); |
817 | } | 817 | } |
818 | packet_done(); /* done with parsing incoming message. */ | 818 | packet_check_eom(); /* done with parsing incoming message. */ |
819 | 819 | ||
820 | packet_add_padding(64); | 820 | packet_add_padding(64); |
821 | packet_send(); | 821 | packet_send(); |