aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1998-05-24 14:59:57 +0000
committerDavid Greenman <dg@FreeBSD.org>1998-05-24 14:59:57 +0000
commitb8e8c209c5e0de26858204fcc0ae18985fb64369 (patch)
tree14d15bd78a26d45eaf055ddbee49c8cd40307672 /sys/netinet
parent0d7d0fcf297a56f8302990c8ce9f0d5cefb82d15 (diff)
Notes
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 5f0eced490a3c..f80c483b38f6b 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.82 1998/04/13 17:27:08 phk Exp $
+ * $Id: ip_input.c,v 1.83 1998/05/19 14:04:32 dg Exp $
* $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
*/
@@ -1068,7 +1068,7 @@ nosourcerouting:
break;
case IPOPT_TS_TSANDADDR:
- if (ipt->ipt_ptr + sizeof(n_time) +
+ if (ipt->ipt_ptr - 1 + sizeof(n_time) +
sizeof(struct in_addr) > ipt->ipt_len)
goto bad;
ipaddr.sin_addr = dst;
@@ -1082,7 +1082,7 @@ nosourcerouting:
break;
case IPOPT_TS_PRESPEC:
- if (ipt->ipt_ptr + sizeof(n_time) +
+ if (ipt->ipt_ptr - 1 + sizeof(n_time) +
sizeof(struct in_addr) > ipt->ipt_len)
goto bad;
(void)memcpy(&ipaddr.sin_addr, sin,