diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-06 21:37:40 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-06 21:37:40 +0000 |
commit | a0ada83984358ba7eeb16ed6b0e5013cf86cb697 (patch) | |
tree | 574a398cdc25d37917e6579dd27c9e46d4243f27 | |
parent | 3bac39137a652b24b89d5b9e2a39600619fbe1d3 (diff) | |
download | slirp-a0ada83984358ba7eeb16ed6b0e5013cf86cb697.zip slirp-a0ada83984358ba7eeb16ed6b0e5013cf86cb697.tar.gz slirp-a0ada83984358ba7eeb16ed6b0e5013cf86cb697.tar.bz2 |
Fix SIGSEGV crash in slirp networking codev0.10.6v0.10.5v0.10.4v0.10.3v0.10.2v0.10.1v0.10.0release_0_10_2release_0_10_1release_0_10_0
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
-rw-r--r-- | ip_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |