diff options
author | bde <bde@FreeBSD.org> | 1998-07-13 12:12:25 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-13 12:12:25 +0000 |
commit | 012bf0d7ba3a1f82c9f4a72476455d0fe08f552b (patch) | |
tree | f1026a8884b6916306dce9e06b701ac8b043ee22 /sys | |
parent | d16ff5c40096a2af9f99118e0c672aba53e77fcd (diff) | |
download | FreeBSD-src-012bf0d7ba3a1f82c9f4a72476455d0fe08f552b.zip FreeBSD-src-012bf0d7ba3a1f82c9f4a72476455d0fe08f552b.tar.gz |
Fixed some longs that should have been fixed-sized types.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_input.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 93834a0..98dc551 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.95 1998/07/06 09:10:56 julian Exp $ + * $Id: ip_input.c,v 1.96 1998/07/08 08:49:51 dg Exp $ * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $ */ @@ -1113,7 +1113,7 @@ nosourcerouting: ipt = (struct ip_timestamp *)cp; if (ipt->ipt_len < 5) goto bad; - if (ipt->ipt_ptr > ipt->ipt_len - sizeof (long)) { + if (ipt->ipt_ptr > ipt->ipt_len - sizeof(int32_t)) { if (++ipt->ipt_oflw == 0) goto bad; break; diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 75e40f7..92e3c00 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 - * $Id: ip_output.c,v 1.77 1998/07/06 05:00:53 julian Exp $ + * $Id: ip_output.c,v 1.78 1998/07/06 05:04:33 julian Exp $ */ #define _IP_VHL @@ -980,7 +980,7 @@ ip_pcbopts(pcbopt, m) } #ifndef vax - if (m->m_len % sizeof(long)) + if (m->m_len % sizeof(int32_t)) goto bad; #endif /* |