diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-09-23 04:47:03 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-09-23 04:47:03 +0000 |
commit | 18463ce0838d9678402b2bd85f08452cdcfc9120 (patch) | |
tree | 88b0734423ba8bd9f82ea395302c20aced1592ca /sys/net/if_tun.c | |
parent | c7968146c8a68c46d389c2093c34be7f7ec8a3e1 (diff) |
If tunread() fails, we should increment if_oerrors, not if_ierrors.
"yup" deraadt@
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index ba9ce52790d..d9f6e7a27c0 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.108 2010/09/22 05:44:27 matthew Exp $ */ +/* $OpenBSD: if_tun.c,v 1.109 2010/09/23 04:47:02 matthew Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -818,7 +818,7 @@ tunread(dev_t dev, struct uio *uio, int ioflag) m_freem(m0); } if (error) - ifp->if_ierrors++; + ifp->if_oerrors++; return (error); } |