]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
M_PREPEND() with an argument of M_TRYWAIT can fail, meaning the
authorrwatson <rwatson@FreeBSD.org>
Tue, 26 Aug 2003 14:11:48 +0000 (14:11 +0000)
committerrwatson <rwatson@FreeBSD.org>
Tue, 26 Aug 2003 14:11:48 +0000 (14:11 +0000)
commitbfe66075cf6940f2c1e9a0297cf821651a24a70d
tree6f3d9c16a6f7ca69d0b15565a84c0ae82c4fcd29
parent05b6d7c95ac193c44a7cbc5f1e2a89939a1fc2c4
M_PREPEND() with an argument of M_TRYWAIT 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 local kernel panic when sending raw IP packets.

PR: kern/55886
Reported by: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
MFC after: 3 days
sys/netinet/raw_ip.c