diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-11-29 17:53:57 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-11-29 17:53:57 +0000 |
| commit | df4dece10200edc153f51c5fd7bb264c1f5e0a9d (patch) | |
| tree | e35d95ecb8619dba02f6979ffdfebd85ffbbfba1 /sys/opencrypto | |
| parent | 10229cd109b3428668c7c4f516e363352c62d0e5 (diff) | |
Notes
Diffstat (limited to 'sys/opencrypto')
| -rw-r--r-- | sys/opencrypto/cryptosoft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c index 2769be6672dc..97b73a214f46 100644 --- a/sys/opencrypto/cryptosoft.c +++ b/sys/opencrypto/cryptosoft.c @@ -552,7 +552,7 @@ swcr_compdec(struct cryptodesc *crd, struct swcr_data *sw, sw->sw_size = result; /* Check the compressed size when doing compression */ if (crd->crd_flags & CRD_F_COMP) { - if (result > crd->crd_len) { + if (result >= crd->crd_len) { /* Compression was useless, we lost time */ free(out, M_CRYPTO_DATA); return 0; |
