aboutsummaryrefslogtreecommitdiff
path: root/slirp/cksum.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/cksum.c')
-rw-r--r--slirp/cksum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/slirp/cksum.c b/slirp/cksum.c
index 34977ffc03..a044ec17cc 100644
--- a/slirp/cksum.c
+++ b/slirp/cksum.c
@@ -68,7 +68,9 @@ int cksum(struct mbuf *m, int len)
if (len < mlen)
mlen = len;
+#ifdef DEBUG
len -= mlen;
+#endif
/*
* Force to even boundary.
*/