aboutsummaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-03-20 12:14:18 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-03-22 22:51:56 +0100
commit99787f69cdd8147d0be67d71ec3058cce21e2444 (patch)
tree534f615c5dfe3358165c921e19e4d4df259e4362 /slirp
parent459621ac1a505ef7dee769295ee2e6c835b2314d (diff)
downloadqemu-99787f69cdd8147d0be67d71ec3058cce21e2444.zip
qemu-99787f69cdd8147d0be67d71ec3058cce21e2444.tar.gz
qemu-99787f69cdd8147d0be67d71ec3058cce21e2444.tar.bz2
slirp: Fix memory leak on small incoming ipv4 packet
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'slirp')
-rw-r--r--slirp/ip_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/ip_input.c b/slirp/ip_input.c
index 12f173d..b464f6b 100644
--- a/slirp/ip_input.c
+++ b/slirp/ip_input.c
@@ -85,7 +85,7 @@ ip_input(struct mbuf *m)
DEBUG_ARG("m_len = %d", m->m_len);
if (m->m_len < sizeof (struct ip)) {
- return;
+ goto bad;
}
ip = mtod(m, struct ip *);