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:
dim 2011-12-16 00:48:53 +00:00
parent 0fddcbcf1c
commit d107e99829
1 changed files with 1 additions and 1 deletions

View File

@ -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 */