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/udp_usrreq.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.138.2.5 retrieving revision 1.160.6.1 diff -u -p -r1.138.2.5 -r1.160.6.1 --- src/sys/netinet/udp_usrreq.c 2007/12/07 17:34:33 1.138.2.5 +++ src/sys/netinet/udp_usrreq.c 2007/09/03 16:49:07 1.160.6.1 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.138.2.5 2007/12/07 17:34:33 yamt Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.160.6.1 2007/09/03 16:49:07 jmcneill Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.138.2.5 2007/12/07 17:34:33 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.160.6.1 2007/09/03 16:49:07 jmcneill Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -1029,7 +1029,7 @@ udp_ctloutput(int op, struct socket *so, switch (optname) { case UDP_ENCAP: - if (m == NULL || m->m_len != sizeof(int)) { + if (m == NULL || m->m_len < sizeof (int)) { error = EINVAL; break; }