From a0ada83984358ba7eeb16ed6b0e5013cf86cb697 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Fri, 6 Feb 2009 21:37:40 +0000 Subject: 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 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6545 c046a42c-6fe2-441c-8c8c-71466251a162 --- ip_input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ip_input.c') diff --git a/ip_input.c b/ip_input.c index ad736ba..fdc8db5 100644 --- a/ip_input.c +++ b/ip_input.c @@ -386,8 +386,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); } -- cgit v1.1