mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Revert to vendor version, what little was left of our local patches here
was incorrect. Pointed out by: Markus Friedl <markus@openbsd.org>
This commit is contained in:
parent
c53c013bae
commit
5297e48d04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93704
@ -457,7 +457,7 @@ userauth_passwd(Authctxt *authctxt)
|
||||
packet_put_cstring(authctxt->service);
|
||||
packet_put_cstring(authctxt->method->name);
|
||||
packet_put_char(0);
|
||||
ssh_put_password(password);
|
||||
packet_put_cstring(password);
|
||||
memset(password, 0, strlen(password));
|
||||
xfree(password);
|
||||
packet_add_padding(64);
|
||||
@ -810,7 +810,7 @@ input_userauth_info_req(int type, u_int32_t seq, void *ctxt)
|
||||
|
||||
response = read_passphrase(prompt, echo ? RP_ECHO : 0);
|
||||
|
||||
ssh_put_password(response);
|
||||
packet_put_cstring(response);
|
||||
memset(response, 0, strlen(response));
|
||||
xfree(response);
|
||||
xfree(prompt);
|
||||
|
Loading…
Reference in New Issue
Block a user