diff options
author | ae <ae@FreeBSD.org> | 2016-03-02 13:38:21 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2016-03-02 13:38:21 +0000 |
commit | 3b4b162df0228ed74a1e63eccc7315071254344f (patch) | |
tree | fee6f0b494e39f4c7a4ca867cc1da7e2ed4394fd /sbin | |
parent | c297413491e7dd2dd41bab0b4f0c62d35804211c (diff) | |
download | FreeBSD-src-3b4b162df0228ed74a1e63eccc7315071254344f.zip FreeBSD-src-3b4b162df0228ed74a1e63eccc7315071254344f.tar.gz |
MFC r295969:
Fix bug in filling and handling ipfw's O_DSCP opcode.
Due to integer overflow CS4 token was handled as BE.
PR: 207459
Approved by: re (gjb)
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipfw/ipfw2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index ff8395d..f585ded 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -779,7 +779,7 @@ fill_dscp(ipfw_insn *cmd, char *av, int cblen) errx(EX_DATAERR, "Invalid DSCP value"); } - if (code > 32) + if (code >= 32) *high |= 1 << (code - 32); else *low |= 1 << code; |