diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-07-09 07:18:51 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-07-09 07:18:51 +0000 |
commit | 7a10ca28503544f34329d2dd36bd18bbd8d70def (patch) | |
tree | d81898d68772e78faa070c70cef25feca1a924c5 /sys/net/pf_norm.c | |
parent | 94b4b06650ab02bf53b44a332591de525e3448dc (diff) |
KNF
Diffstat (limited to 'sys/net/pf_norm.c')
-rw-r--r-- | sys/net/pf_norm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c index ecef4432fb1..d855df991b5 100644 --- a/sys/net/pf_norm.c +++ b/sys/net/pf_norm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_norm.c,v 1.62 2003/07/01 00:28:52 itojun Exp $ */ +/* $OpenBSD: pf_norm.c,v 1.63 2003/07/09 07:18:50 dhartmei Exp $ */ /* * Copyright 2001 Niels Provos <provos@citi.umich.edu> @@ -1044,7 +1044,8 @@ pf_normalize_ip6(struct mbuf **m0, int dir, struct ifnet *ifp, u_short *reason) /* Check for illegal packets */ if (ntohs(h->ip6_plen) == 0) { /* jumbo payload option must be present */ - if (sizeof(struct ip6_hdr) + IPV6_MAXPACKET >= m->m_pkthdr.len) goto drop; + if (sizeof(struct ip6_hdr) + IPV6_MAXPACKET >= m->m_pkthdr.len) + goto drop; } else if (sizeof(struct ip6_hdr) + ntohs(h->ip6_plen) != m->m_pkthdr.len) goto drop; |