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
This commit is contained in:
parent
67b557859d
commit
f2ba730e89
@ -392,8 +392,7 @@ insert:
|
|||||||
* into the new buffer.
|
* into the new buffer.
|
||||||
*/
|
*/
|
||||||
if (m->m_flags & M_EXT) {
|
if (m->m_flags & M_EXT) {
|
||||||
int delta;
|
int delta = (char *)q - m->m_dat;
|
||||||
delta = (char *)ip - m->m_dat;
|
|
||||||
q = (struct ipasfrag *)(m->m_ext + delta);
|
q = (struct ipasfrag *)(m->m_ext + delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user