mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Fixed some longs that should have been fixed-sized types.
This commit is contained in:
parent
9105bb4680
commit
0c8d2590e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37624
@ -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 @@ ip_dooptions(m)
|
||||
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;
|
||||
|
@ -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
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user