freebsd-nq/sys/netinet6
Mark Johnston d8acd2681b Fix mbuf leaks in various pru_send implementations
The various protocol implementations are not very consistent about
freeing mbufs in error paths.  In general, all protocols must free both
"m" and "control" upon an error, except if PRUS_NOTREADY is specified
(this is only implemented by TCP and unix(4) and requires further work
not handled in this diff), in which case "control" still must be freed.

This diff plugs various leaks in the pru_send implementations.

Reviewed by:	tuexen
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D30151
2021-05-12 13:00:09 -04:00
..
dest6.c
frag6.c
icmp6.c
icmp6.h
in6_cksum.c
in6_fib_algo.c
in6_fib.c
in6_fib.h
in6_gif.c
in6_ifattach.c
in6_ifattach.h
in6_jail.c
in6_mcast.c in6_mcast: Return EADDRINUSE when we've already joined the group 2021-05-10 09:48:51 +02:00
in6_pcb.c Add missing sockaddr length and family validation to various protocols 2021-05-03 13:35:19 -04:00
in6_pcb.h
in6_pcbgroup.c
in6_proto.c
in6_rmx.c
in6_rss.c
in6_rss.h
in6_src.c
in6_var.h
in6.c Re-enable network ioctls in capability mode 2021-04-23 09:22:49 -04:00
in6.h
ip6_ecn.h
ip6_fastfwd.c
ip6_forward.c
ip6_gre.c
ip6_id.c
ip6_input.c
ip6_mroute.c
ip6_mroute.h
ip6_output.c
ip6_var.h
ip6.h
ip6protosw.h
ip_fw_nat64.h
ip_fw_nptv6.h
mld6_var.h
mld6.c
mld6.h
nd6_nbr.c
nd6_rtr.c nd6: Avoid using an uninitialized sockaddr in nd6_prefix_offlink() 2021-05-12 12:52:06 -04:00
nd6.c
nd6.h
pim6_var.h
pim6.h
raw_ip6.c Fix mbuf leaks in various pru_send implementations 2021-05-12 13:00:09 -04:00
raw_ip6.h
route6.c
scope6_var.h
scope6.c
sctp6_usrreq.c Fix mbuf leaks in various pru_send implementations 2021-05-12 13:00:09 -04:00
sctp6_var.h
send.c Fix mbuf leaks in various pru_send implementations 2021-05-12 13:00:09 -04:00
send.h
tcp6_var.h tcp: add support for TCP over UDP 2021-04-18 16:16:42 +02:00
udp6_usrreq.c Add missing sockaddr length and family validation to various protocols 2021-05-03 13:35:19 -04:00
udp6_var.h