From: Matthew Dillon Date: Thu, 16 Sep 2010 07:38:49 +0000 (-0700) Subject: network - Fix nasty bug in udp6_send() X-Git-Url: https://gitweb.dragonflybsd.org/~uqs/games.git/commitdiff_plain/c14a35e96cf7d2910e09862ad8374f5c28acc91c network - Fix nasty bug in udp6_send() * This bug was causing machines receiving inet6 udp packets to crash very quickly, but was nearly impossible to find due to the weird way it caused mbufs to interact. Reported-by: Peter Avalos , Francois Tigeot --- diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index f3b9bf02f7..0bf83d1950 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -819,6 +819,8 @@ udp6_send(netmsg_t msg) } error = udp6_output(inp, m, addr, control, td); + lwkt_replymsg(&msg->send.base.lmsg, error); + return; bad: m_freem(m); lwkt_replymsg(&msg->send.base.lmsg, error);