In contrib/telnet/libtelnet/sra.c, use the correct number of bytes to
zero the password buffer. MFC after: 1 week git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@228559 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
parent
0fddcbcf1c
commit
d107e99829
|
@ -303,7 +303,7 @@ sra_reply(Authenticator *ap, unsigned char *data, int cnt)
|
|||
goto enc_user;
|
||||
}
|
||||
/* encode password */
|
||||
memset(pass,0,sizeof(pass));
|
||||
memset(pass,0,256);
|
||||
telnet_gets("Password: ",pass,255,0);
|
||||
pk_encode(pass,xpass,&ck);
|
||||
/* send it off */
|
||||
|
|
Loading…
Reference in New Issue