diff options
author | ae <ae@FreeBSD.org> | 2016-02-24 13:16:03 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2016-02-24 13:16:03 +0000 |
commit | fbff7925a133d45c4511f61818c53393501ce9dc (patch) | |
tree | 772bdd4c489ed227f89e79db56e6677c158a2c15 /sbin/ipfw | |
parent | 96081091e737f454bfb88ec5b1fa6e285a535027 (diff) | |
download | FreeBSD-src-fbff7925a133d45c4511f61818c53393501ce9dc.zip FreeBSD-src-fbff7925a133d45c4511f61818c53393501ce9dc.tar.gz |
Fix bug in filling and handling ipfw's O_DSCP opcode.
Due to integer overflow CS4 token was handled as BE.
PR: 207459
MFC after: 1 week
Diffstat (limited to 'sbin/ipfw')
-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 366f77f..f6a9692 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -1029,7 +1029,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; |