diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-11-07 16:03:18 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-11-07 16:03:18 +0000 |
commit | b06e3b70d85e587ac39299487ff576a5f59bd64a (patch) | |
tree | 0f6b815d9538f62f34a0a7b6f90e5ed599790beb /usr.bin/ssh/sshconnect2.c | |
parent | e4ded0b9249c7b51674ca06e2ee311efc1e8598a (diff) |
pad using the padding field from the ssh2 packet instead of sending
extra ignore messages. tested against several other ssh servers.
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index 66dccf600a7..310788538a2 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect2.c,v 1.84 2001/10/29 19:27:15 markus Exp $"); +RCSID("$OpenBSD: sshconnect2.c,v 1.85 2001/11/07 16:03:17 markus Exp $"); #include <openssl/bn.h> #include <openssl/md5.h> @@ -460,7 +460,7 @@ userauth_passwd(Authctxt *authctxt) packet_put_cstring(password); memset(password, 0, strlen(password)); xfree(password); - packet_inject_ignore(64); + packet_add_padding(64); packet_send(); return 1; } @@ -817,7 +817,7 @@ input_userauth_info_req(int type, int plen, void *ctxt) } packet_done(); /* done with parsing incoming message. */ - packet_inject_ignore(64); + packet_add_padding(64); packet_send(); } |