diff options
author | mlaier <mlaier@FreeBSD.org> | 2008-06-05 19:30:20 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2008-06-05 19:30:20 +0000 |
commit | 282a9aef65562370ac339edde046f796b91f2270 (patch) | |
tree | 7ee6c8f816e4fe96d3a4b6ec56eed0b81ba26959 /sys/contrib | |
parent | 64b4dcdc79c4b26aad1ac660f5fdf3aa507609bd (diff) | |
download | FreeBSD-src-282a9aef65562370ac339edde046f796b91f2270.zip FreeBSD-src-282a9aef65562370ac339edde046f796b91f2270.tar.gz |
Fix range check for rtable id.
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/pf/net/pf_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c index f765029..a4ed9e5 100644 --- a/sys/contrib/pf/net/pf_ioctl.c +++ b/sys/contrib/pf/net/pf_ioctl.c @@ -1532,7 +1532,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) } #ifdef __FreeBSD__ /* ROUTEING */ - if (rule->rtableid > 0 && rule->rtableid < rt_numfibs) + if (rule->rtableid > 0 && rule->rtableid > rt_numfibs) #else if (rule->rtableid > 0 && !rtable_exists(rule->rtableid)) #endif @@ -1795,7 +1795,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) if (newrule->rtableid > 0 && #ifdef __FreeBSD__ /* ROUTING */ - newrule->rtableid < rt_numfibs) + newrule->rtableid > rt_numfibs) #else !rtable_exists(newrule->rtableid)) #endif |