summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netinet6/esp_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/esp_core.c b/sys/netinet6/esp_core.c
index 0319255..f262531 100644
--- a/sys/netinet6/esp_core.c
+++ b/sys/netinet6/esp_core.c
@@ -731,7 +731,7 @@ esp_cbc_decrypt(m, off, sav, algo, ivlen)
/* skip bodyoff */
while (soff < bodyoff) {
- if (soff + s->m_len > bodyoff) {
+ if (soff + s->m_len >= bodyoff) {
sn = bodyoff - soff;
break;
}
@@ -941,7 +941,7 @@ esp_cbc_encrypt(m, off, plen, sav, algo, ivlen)
/* skip bodyoff */
while (soff < bodyoff) {
- if (soff + s->m_len > bodyoff) {
+ if (soff + s->m_len >= bodyoff) {
sn = bodyoff - soff;
break;
}
OpenPOWER on IntegriCloud