diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2009-05-18 20:37:14 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2009-05-18 20:37:14 +0000 |
commit | 24d31a5aef766e9feb1e419c01f3ce0cb1fce839 (patch) | |
tree | c2e1d737c23f816292ee3db30386558a7376d3ef /libexec | |
parent | a86f52df1b164dce52103854d9c0f6dcc01308e0 (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