diff options
| author | 2009-11-12 00:02:16 +0000 | |
|---|---|---|
| committer | 2009-11-12 00:02:16 +0000 | |
| commit | 70f72b7978df19f23949074abeb7f32e5ca5e5ac (patch) | |
| tree | ee17f61af77338809579831b7dd9eb778f628811 /usr.sbin/tcpdump/print-ppp.c | |
| parent | Fix memory leaks found by parfait. (diff) | |
| download | wireguard-openbsd-70f72b7978df19f23949074abeb7f32e5ca5e5ac.tar.xz wireguard-openbsd-70f72b7978df19f23949074abeb7f32e5ca5e5ac.zip | |
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) { |
