1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

I saw a very low-key commit message on the netbsd mailing lists and

figured out what the problem was..  Anyway, I rate it as "highly
serious".

Submitted by:	peter@haywire.DIALix.COM (Peter Wemm)
This commit is contained in:
Joerg Wunsch 1995-07-01 19:09:40 +00:00
parent f553a3f620
commit d700586c3a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9383

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_output.c 8.3 (Berkeley) 1/21/94
* $Id: ip_output.c,v 1.18 1995/05/09 13:35:46 davidg Exp $
* $Id: ip_output.c,v 1.20 1995/06/13 17:51:14 wollman Exp $
*/
#include <sys/param.h>
@ -554,7 +554,9 @@ ip_ctloutput(op, so, level, optname, mp)
case IP_RECVOPTS:
case IP_RECVRETOPTS:
case IP_RECVDSTADDR:
if (m->m_len != sizeof(int))
if (m == 0)
error = EFAULT;
else if (m->m_len != sizeof(int))
error = EINVAL;
else {
optval = *mtod(m, int *);