diff options
author | 2001-11-07 16:03:17 +0000 | |
---|---|---|
committer | 2001-11-07 16:03:17 +0000 | |
commit | 1c3c37efc221e4b21b66bad6d95193001114f646 (patch) | |
tree | 31a1311a484914b8f8ae06d898d9e61880414363 /usr.bin/ssh/sshconnect2.c | |
parent | Only mktemp /tmp/pbad.XXXXXXXXXX when we need it, otherwise we end (diff) | |
download | wireguard-openbsd-1c3c37efc221e4b21b66bad6d95193001114f646.tar.xz wireguard-openbsd-1c3c37efc221e4b21b66bad6d95193001114f646.zip |
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(); } |