summaryrefslogtreecommitdiffstats
path: root/slirp
diff options
context:
space:
mode:
authorAnthony Liguori2011-02-14 21:24:24 +0100
committerAnthony Liguori2011-02-14 21:24:24 +0100
commit8fe3046f17ff98469c5874a0e7be823adc768485 (patch)
tree756f7803e5ccffbf3488ecd5436e6d12b9c5deba /slirp
parentPATCH] slirp: fix buffer overrun (diff)
downloadqemu-8fe3046f17ff98469c5874a0e7be823adc768485.tar.gz
qemu-8fe3046f17ff98469c5874a0e7be823adc768485.tar.xz
qemu-8fe3046f17ff98469c5874a0e7be823adc768485.zip
Fix build from previous commit
I unfortunately got on an unnamed branch and pushed the wrong bits Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp')
-rw-r--r--slirp/mbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/mbuf.c b/slirp/mbuf.c
index eadc802241..ce2eb843f5 100644
--- a/slirp/mbuf.c
+++ b/slirp/mbuf.c
@@ -65,7 +65,7 @@ m_get(Slirp *slirp)
m->m_flags = (flags | M_USEDLIST);
/* Initialise it */
- m->m_size = SLIRP_MSIZE - offsetof(struct m_hdr, m_dat);
+ m->m_size = SLIRP_MSIZE - offsetof(struct mbuf, m_dat);
m->m_data = m->m_dat;
m->m_len = 0;
m->m_nextpkt = NULL;