In contrib/telnet/libtelnet/sra.c, use the correct number of bytes to
zero the password buffer. MFC after: 1 week
This commit is contained in:
parent
f5af6108d0
commit
5cd3bc283f
@ -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
Block a user