Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2011 00:48:53 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228559 - head/contrib/telnet/libtelnet
Message-ID:  <201112160048.pBG0mrGK078296@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Dec 16 00:48:53 2011
New Revision: 228559
URL: http://svn.freebsd.org/changeset/base/228559

Log:
  In contrib/telnet/libtelnet/sra.c, use the correct number of bytes to
  zero the password buffer.
  
  MFC after:	1 week

Modified:
  head/contrib/telnet/libtelnet/sra.c

Modified: head/contrib/telnet/libtelnet/sra.c
==============================================================================
--- head/contrib/telnet/libtelnet/sra.c	Fri Dec 16 00:39:44 2011	(r228558)
+++ head/contrib/telnet/libtelnet/sra.c	Fri Dec 16 00:48:53 2011	(r228559)
@@ -303,7 +303,7 @@ sra_reply(Authenticator *ap, unsigned ch
 			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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112160048.pBG0mrGK078296>