diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -432,7 +432,7 @@ /* check if we can safely examine src and dst ports */ if (m->m_pkthdr.len < off + sizeof(*uhp)) - return; + goto out; bzero(&uh, sizeof(uh)); m_copydata(m, off, sizeof(*uhp), &uh);