aboutsummaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
Diffstat (limited to 'slirp')
-rw-r--r--slirp/ip_input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/slirp/ip_input.c b/slirp/ip_input.c
index e7f275613f..505149a33e 100644
--- a/slirp/ip_input.c
+++ b/slirp/ip_input.c
@@ -392,8 +392,7 @@ insert:
* into the new buffer.
*/
if (m->m_flags & M_EXT) {
- int delta;
- delta = (char *)ip - m->m_dat;
+ int delta = (char *)q - m->m_dat;
q = (struct ipasfrag *)(m->m_ext + delta);
}