diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-12 00:02:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-12 00:02:17 +0000 |
commit | a23f6be9ed28eafcfea2c2bd8a4664abea537c24 (patch) | |
tree | 4a71630b1eade942bccfacd4e39cc2c2838024f9 /usr.sbin/tcpdump/print-ppp.c | |
parent | cced514271951e117cb56f06ee60f0a8a9dec51f (diff) |
fix read-one-beyond-of-array errors; ok sthen jsg
Diffstat (limited to 'usr.sbin/tcpdump/print-ppp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-ppp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-ppp.c b/usr.sbin/tcpdump/print-ppp.c index 7654d538938..ed354151af3 100644 --- a/usr.sbin/tcpdump/print-ppp.c +++ b/usr.sbin/tcpdump/print-ppp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ppp.c,v 1.21 2009/10/27 23:59:55 deraadt Exp $ */ +/* $OpenBSD: print-ppp.c,v 1.22 2009/11/12 00:02:16 deraadt Exp $ */ /* * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997 @@ -325,7 +325,7 @@ print_lcp_config_options(p) int len = *(p+1); int opt = *p; - if((opt >= LCPOPT_MIN) && (opt <= LCPOPT_MAX)) + if((opt >= LCPOPT_MIN) && (opt < LCPOPT_MAX)) printf(", %s", lcpconfopts[opt]); switch(opt) { |