From 88ad3c767812c08478204972155123abed4eca02 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Sat, 3 Mar 2001 01:09:29 +0000 Subject: on parse error of timestamp option, set parameter error offset correctly. --- sys/netinet/ip_input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index ad21ded43b5..d9ab71c599c 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.62 2001/03/03 01:00:19 itojun Exp $ */ +/* $OpenBSD: ip_input.c,v 1.63 2001/03/03 01:09:28 itojun Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -1221,6 +1221,9 @@ ip_dooptions(m) break; default: + /* XXX can't take &ipt->ipt_flg */ + code = (u_char *)&ipt.ipt_ptr - + (u_char *)ip + 1; goto bad; } ntime = iptime(); -- cgit v1.2.3