Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/raw_ip.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/raw_ip.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.87.2.5 retrieving revision 1.100.6.1 diff -u -p -r1.87.2.5 -r1.100.6.1 --- src/sys/netinet/raw_ip.c 2007/10/27 11:36:09 1.87.2.5 +++ src/sys/netinet/raw_ip.c 2007/12/08 18:21:14 1.100.6.1 @@ -1,4 +1,4 @@ -/* $NetBSD: raw_ip.c,v 1.87.2.5 2007/10/27 11:36:09 yamt Exp $ */ +/* $NetBSD: raw_ip.c,v 1.100.6.1 2007/12/08 18:21:14 mjf Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.87.2.5 2007/10/27 11:36:09 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.100.6.1 2007/12/08 18:21:14 mjf Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -384,7 +384,7 @@ rip_ctloutput(int op, struct socket *so, *m = m_intopt(so, (inp->inp_flags & INP_NOHEADER) ? 1 : 0); return 0; - } else if (*m == NULL || (*m)->m_len < sizeof(int)) + } else if (*m == NULL || (*m)->m_len != sizeof(int)) error = EINVAL; else if (*mtod(*m, int *)) { inp->inp_flags &= ~INP_HDRINCL; @@ -400,7 +400,7 @@ rip_ctloutput(int op, struct socket *so, case PRCO_SETOPT: switch (optname) { case IP_HDRINCL: - if (*m == NULL || (*m)->m_len < sizeof(int)) + if (*m == NULL || (*m)->m_len != sizeof(int)) error = EINVAL; else if (*mtod(*m, int *)) inp->inp_flags |= INP_HDRINCL;