From owner-svn-src-stable-10@FreeBSD.ORG Fri Aug 8 19:39:41 2014 Return-Path: Delivered-To: svn-src-stable-10@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5CA6BD65 for ; Fri, 8 Aug 2014 19:39:41 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3102E213A for ; Fri, 8 Aug 2014 19:39:41 +0000 (UTC) Received: from delphij (uid 1035) (envelope-from delphij@FreeBSD.org) id 2bb2 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Fri, 08 Aug 2014 19:39:40 +0000 From: Xin LI Date: Fri, 8 Aug 2014 19:39:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r269738 - in stable/10/tools/regression/net80211: ccmp wep X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e5277d.2bb2.76f42596@svn.freebsd.org> X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2014 19:39:41 -0000 Author: delphij Date: Fri Aug 8 19:39:40 2014 New Revision: 269738 URL: http://svnweb.freebsd.org/changeset/base/269738 Log: MFC r269098: Use the right lengths. Submitted by: Sascha Wildner Modified: stable/10/tools/regression/net80211/ccmp/test_ccmp.c stable/10/tools/regression/net80211/wep/test_wep.c Directory Properties: stable/10/ (props changed) Modified: stable/10/tools/regression/net80211/ccmp/test_ccmp.c ============================================================================== --- stable/10/tools/regression/net80211/ccmp/test_ccmp.c Fri Aug 8 19:36:40 2014 (r269737) +++ stable/10/tools/regression/net80211/ccmp/test_ccmp.c Fri Aug 8 19:39:40 2014 (r269738) @@ -680,7 +680,7 @@ runtest(struct ieee80211com *ic, struct printf("FAIL: decap botch; data does not compare\n"); printtest(t); cmpfail(mtod(m, const void *), m->m_pkthdr.len, - t->plaintext, sizeof(t->plaintext)); + t->plaintext, t_plaintext_len); goto bad; } m_freem(m); Modified: stable/10/tools/regression/net80211/wep/test_wep.c ============================================================================== --- stable/10/tools/regression/net80211/wep/test_wep.c Fri Aug 8 19:36:40 2014 (r269737) +++ stable/10/tools/regression/net80211/wep/test_wep.c Fri Aug 8 19:39:40 2014 (r269738) @@ -242,7 +242,7 @@ runtest(struct ieee80211com *ic, struct } else if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) { printf("FAIL: decap botch; data does not compare\n"); cmpfail(mtod(m, const void *), m->m_pkthdr.len, - t->plaintext, sizeof(t->plaintext)); + t->plaintext, t->plaintext_len); goto bad; }