M_PREPEND() can fail, meaning the returned mbuf
authorDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 26 Aug 2003 21:32:57 +0000 (21:32 +0000)
committerDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 26 Aug 2003 21:32:57 +0000 (21:32 +0000)
commit1b8db65fb62cd10c435b1390b2e7982044cc9db4
tree35b24d79bba978a6b67cb49e9ced5109108d6dae
parent402ed7e1da2052b942a477981621b1edbc4a3a22
M_PREPEND() can fail, meaning the returned mbuf
can be NULL. Check for NULL in rip_output()
when prepending an IP header. This prevents
mbuf exhaustion from causing a kernel panic
when sending raw IP packets.
sys/netinet/raw_ip.c