From owner-cvs-src-old@FreeBSD.ORG Tue Dec 29 23:47:32 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 68EAB10656B7 for ; Tue, 29 Dec 2009 23:47:32 +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 57E5C8FC1C for ; Tue, 29 Dec 2009 23:47:32 +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 nBTNlW80064114 for ; Tue, 29 Dec 2009 23:47:32 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBTNlWJU064113 for cvs-src-old@freebsd.org; Tue, 29 Dec 2009 23:47:32 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <200912292347.nBTNlWJU064113@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Tue, 29 Dec 2009 23:47:21 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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: Tue, 29 Dec 2009 23:47:32 -0000 bz 2009-12-29 23:47:21 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/opencrypto cryptosoft.c Log: SVN rev 201242 on 2009-12-29 23:47:21Z 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.19.2.1 +1 -1 src/sys/opencrypto/cryptosoft.c