cryptosoft - Fix useless compression detection
authorAlex Hornung <ahornung@gmail.com>
Sat, 21 Aug 2010 06:49:27 +0000 (07:49 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sat, 21 Aug 2010 06:49:27 +0000 (07:49 +0100)
commit1f26af6e4b0512d444bd50fe484b8aaf2ab93e6f
tree096a42cf1eb41374d6d886778a8b7b9efbd59233
parent7a89864aca790456f28133cb04924ae4b1364a46
cryptosoft - Fix useless compression detection

* If the result of the compression has the same size as the input, it's
  also useless; not only when it's bigger.

* This seems to fix several issues with consumers that would send the
  data out without noting that compression was used.

Obtained-from: FreeBSD
sys/opencrypto/cryptosoft.c