]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r199906:
authorbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 5 Dec 2009 19:12:35 +0000 (19:12 +0000)
committerbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 5 Dec 2009 19:12:35 +0000 (19:12 +0000)
commitb8bd3b4768d465bc51ab999e9188e25a7e7ad68e
tree909441363f33d306ec8539eac2b27b44f384dc26
parentdfa6097dbcb4f1d4cdff93813076c6c4939f053f
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@200147 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/opencrypto/cryptosoft.c