From b9b788a5760c97968cafc3828641761cfe07fae2 Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 9 Apr 2006 19:00:23 +0000 Subject: Be consistent with the rest of the code. --- sys/netipsec/xform_esp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netipsec') diff --git a/sys/netipsec/xform_esp.c b/sys/netipsec/xform_esp.c index 993ece6..8a87f45 100644 --- a/sys/netipsec/xform_esp.c +++ b/sys/netipsec/xform_esp.c @@ -329,7 +329,7 @@ esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) } /* Update the counters */ - espstat.esps_ibytes += m->m_pkthdr.len - skip - hlen - alen; + espstat.esps_ibytes += m->m_pkthdr.len - (skip + hlen + alen); /* Find out if we've already done crypto */ for (mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_CRYPTO_DONE, NULL); -- cgit v1.1