Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2009 17:53:57 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/opencrypto cryptosoft.c
Message-ID:  <200911291754.nATHsLd6097999@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911291754.nATHsLd6097999>