summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 9681ca2d4..12335e80e 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.47 2001/02/11 12:59:25 markus Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.48 2001/02/15 23:19:59 markus Exp $");
27 27
28#include <openssl/bn.h> 28#include <openssl/bn.h>
29#include <openssl/md5.h> 29#include <openssl/md5.h>
@@ -658,7 +658,7 @@ userauth_passwd(Authctxt *authctxt)
658 packet_put_cstring(authctxt->service); 658 packet_put_cstring(authctxt->service);
659 packet_put_cstring(authctxt->method->name); 659 packet_put_cstring(authctxt->method->name);
660 packet_put_char(0); 660 packet_put_char(0);
661 packet_put_cstring(password); 661 ssh_put_password(password);
662 memset(password, 0, strlen(password)); 662 memset(password, 0, strlen(password));
663 xfree(password); 663 xfree(password);
664 packet_send(); 664 packet_send();
@@ -928,7 +928,7 @@ input_userauth_info_req(int type, int plen, void *ctxt)
928 928
929 response = cli_prompt(prompt, echo); 929 response = cli_prompt(prompt, echo);
930 930
931 packet_put_cstring(response); 931 ssh_put_password(response);
932 memset(response, 0, strlen(response)); 932 memset(response, 0, strlen(response));
933 xfree(response); 933 xfree(response);
934 xfree(prompt); 934 xfree(prompt);