It was possible to create a gateway route pointing to another gateway
authorbluhm <bluhm@openbsd.org>
Fri, 23 Oct 2015 13:41:41 +0000 (13:41 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 23 Oct 2015 13:41:41 +0000 (13:41 +0000)
commit2d047e49b70167f121acceb99d99d7cc45d94670
treed7eaf428cf69eadec6676c59aaa6663ade3638c9
parentc34868df0ccd66de0cb7542bf5af5b5146fd10f7
It was possible to create a gateway route pointing to another gateway
route by changing the gateway.  Despite the error message when doing
so, the route did actually change.  The gateway is modified by
rt_setgate(), the error is created by rt_getifa().  Do these
operations the other way around.
OK mpi@
sys/net/rtsock.c