diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-12-05 19:12:35 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-12-05 19:12:35 +0000 |
| commit | e55ea9c811cb9d323d9220cc1d26bcf286e0a22a (patch) | |
| tree | 909441363f33d306ec8539eac2b27b44f384dc26 | |
| parent | 99808bdf69dba2f5d0d20a399475648d31540529 (diff) | |
Notes
| -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; |
