diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-11-10 21:10:54 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-11-10 21:10:54 +0000 |
commit | 801e23caf9245d90b43fcd1fccb89fc487e26132 (patch) | |
tree | 6c35463c889fcc0b08cc3a04ac5bc442d0757f16 /sys/net/if.h | |
parent | 0e3852e43fedeb8492625910e8a15566a17d627e (diff) |
Safer IF_INPUT_ENQUEUE macro.
ok millert@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 25057e55f56..a00b4a907a2 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if.h,v 1.58 2004/10/14 21:28:15 mickey Exp $ */ +/* $OpenBSD: if.h,v 1.59 2004/11/10 21:10:53 grange Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -308,7 +308,7 @@ struct ifnet { /* and the entries */ if (IF_QFULL(ifq)) { \ IF_DROP(ifq); \ m_freem(m); \ - if (!ifq->ifq_congestion) \ + if (!(ifq)->ifq_congestion) \ if_congestion(ifq); \ } else \ IF_ENQUEUE(ifq, m); \ |