aboutsummaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-06 21:37:40 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-06 21:37:40 +0000
commitf2ba730e89b420903257e543c1bb7f7d945ba36a (patch)
tree4558ae245201a8b25e9e1ca82b28a75888c38aeb /slirp
parent67b557859d596fda918b096af8ed0db27af9ec5a (diff)
Fix SIGSEGV crash in slirp networking code
Fix SIGSEGV crash in networking code (bug was introduced in r6288). Thanks to Gleb Natapov for finding this fix. Signed-off-by: Stefan Weil <weil@mail.berlios.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6545 c046a42c-6fe2-441c-8c8c-71466251a162
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);
}