mlarkin asks "bgpctl checks the length of the control socket path to
authorbenno <benno@openbsd.org>
Sun, 26 Apr 2015 20:12:03 +0000 (20:12 +0000)
committerbenno <benno@openbsd.org>
Sun, 26 Apr 2015 20:12:03 +0000 (20:12 +0000)
commit339bb5e0218c9575a2f4a588053e69527ae4dfb2
tree6473ec423c1b4ae524fb3a5fbf81af8c63921534
parentbfe6a2e099dc5c819353626693e9458f64babcdf
mlarkin asks "bgpctl checks the length of the control socket path to
make sure it fits. When browsing around last night I saw that bgpd
does not. Any reason it shouldn't? Please commit"

Add a check in parse.y to check this when reading the configuration.
ok phessler@ henning@
usr.sbin/bgpd/control.c
usr.sbin/bgpd/parse.y