Return to udp_usrreq.c CVS log | Up to [cvs.NetBSD.org] / src / sys / netinet |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.138.2.5, 2007/12/07 17:34:33 | version 1.160.6.1, 2007/09/03 16:49:07 | ||
---|---|---|---|
|
|
||
switch (optname) { | switch (optname) { | ||
case UDP_ENCAP: | case UDP_ENCAP: | ||
if (m == NULL || m->m_len != sizeof(int)) { | if (m == NULL || m->m_len < sizeof (int)) { | ||
error = EINVAL; | error = EINVAL; | ||
break; | break; | ||
} | } |