diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-20 12:14:18 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-22 22:51:56 +0100 |
commit | 99787f69cdd8147d0be67d71ec3058cce21e2444 (patch) | |
tree | 534f615c5dfe3358165c921e19e4d4df259e4362 /slirp | |
parent | 459621ac1a505ef7dee769295ee2e6c835b2314d (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/ip_input.c b/slirp/ip_input.c index 12f173de6c..b464f6baf0 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 *); |