From owner-cvs-src-old@FreeBSD.ORG Sun Nov 29 17:54:21 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 70807106568D for ; Sun, 29 Nov 2009 17:54:21 +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 5EC5E8FC21 for ; Sun, 29 Nov 2009 17:54:21 +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 nATHsLx8098000 for ; Sun, 29 Nov 2009 17:54:21 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nATHsLd6097999 for cvs-src-old@freebsd.org; Sun, 29 Nov 2009 17:54:21 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <200911291754.nATHsLd6097999@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Sun, 29 Nov 2009 17:53:57 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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: Sun, 29 Nov 2009 17:54:21 -0000 bz 2009-11-29 17:53:57 UTC FreeBSD src repository Modified files: sys/opencrypto cryptosoft.c Log: SVN rev 199906 on 2009-11-29 17:53:57Z by bz 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. MFC after: 5 days Revision Changes Path 1.24 +1 -1 src/sys/opencrypto/cryptosoft.c