From owner-svn-src-all@FreeBSD.ORG Fri Dec 16 00:48:53 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 893AF106566B; Fri, 16 Dec 2011 00:48:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 784618FC0A; Fri, 16 Dec 2011 00:48:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pBG0mrtD078298; Fri, 16 Dec 2011 00:48:53 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBG0mrGK078296; Fri, 16 Dec 2011 00:48:53 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201112160048.pBG0mrGK078296@svn.freebsd.org> From: Dimitry Andric Date: Fri, 16 Dec 2011 00:48:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228559 - head/contrib/telnet/libtelnet X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 00:48:53 -0000 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 */