netinet/ip - Avoid a NULL pointer dereference.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 10 Apr 2014 13:17:04 +0000 (15:17 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 10 Apr 2014 13:17:50 +0000 (15:17 +0200)
commitf82a5263036fc2c7c21fe66b4f29d49d25dbeaa0
treead58d252c7dbaa4c62a742aac5f39d9b5c415090
parentdd9e3d2ee1d0b078e16bc4ed5e0905d6fdb7676f
netinet/ip - Avoid a NULL pointer dereference.

- Before checking for packets on broadcast addresses, see if there
  is actually a ifnet associated with the mbuf being handled.

FreeBSD-SVN: 130685
DragonFly-bug: <http://bugs.dragonflybsd.org/issues/2660>
Reported-and-Found-by: Vasily Postnicov
This commit closes #2660
sys/netinet/ip_input.c