From owner-cvs-src-old@FreeBSD.ORG Sat Dec 5 19:12:55 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68016106574B for ; Sat, 5 Dec 2009 19:12:55 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5698A8FC1D for ; Sat, 5 Dec 2009 19:12:55 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nB5JCtob066196 for ; Sat, 5 Dec 2009 19:12:55 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nB5JCtKC066195 for cvs-src-old@freebsd.org; Sat, 5 Dec 2009 19:12:55 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <200912051912.nB5JCtKC066195@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Sat, 5 Dec 2009 19:12:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/opencrypto cryptosoft.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2009 19:12:55 -0000 bz 2009-12-05 19:12:35 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/opencrypto cryptosoft.c Log: SVN rev 200147 on 2009-12-05 19:12:35Z by bz MFC r199906: In case the compression result is the same size as the orignal version, the compression was useless as well. Make sure to not update the data and return, else we would waste resources when decompressing. This also avoids the copyback() changing data other consumers like xform_ipcomp.c would have ignored because of no win and sent out without noting that compression was used, resulting in invalid packets at the receiver. Revision Changes Path 1.23.2.2 +1 -1 src/sys/opencrypto/cryptosoft.c