commit | 99b3b70af627980ee3490944c702b42fc855ef2a | [log] [tgz] |
---|---|---|
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | Thu Feb 18 11:33:21 2021 +0000 |
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | Thu Feb 18 11:33:21 2021 +0000 |
tree | 3b92c50e48b4f3621638fd63b4e2b2d6fa5136cf | |
parent | 26ae658a83eeca16780cf5615c8247cbb151c3fa [diff] | |
parent | a973c5922de7ada4ff4d4b459d4f5b28d2aeb9e0 [diff] |
Merge branch 'ndp-leak' into 'master' ip6_output: fix memory leak on fast-send See merge request slirp/libslirp!67
diff --git a/src/ip6_output.c b/src/ip6_output.c index b861106..2f62cc9 100644 --- a/src/ip6_output.c +++ b/src/ip6_output.c
@@ -30,7 +30,10 @@ ip->ip_fl_lo = 0; if (fast) { + /* We cannot fast-send non-multicast, we'd need a NDP NS */ + assert(IN6_IS_ADDR_MULTICAST(&ip->ip_dst)); if_encap(m->slirp, m); + m_free(m); } else { if_output(so, m); }