summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2009-05-18 20:37:14 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2009-05-18 20:37:14 +0000
commit24d31a5aef766e9feb1e419c01f3ce0cb1fce839 (patch)
treec2e1d737c23f816292ee3db30386558a7376d3ef /libexec
parenta86f52df1b164dce52103854d9c0f6dcc01308e0 (diff)
The routing table index rtableid has type unsigned int in the routing
code. In pf rtableid == -1 means don't change the rtableid because of this rule. So it has to be signed int there. Before the value is passed from pf to route it is always checked to be >= 0. Change the type to int in pf and to u_int in netinet and netinet6 to make the checks work. Otherwise -1 may be used as an array index and the kernel crashes. ok henning@
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions