Age | Commit message (Collapse) | Author |
|
|
|
|
|
ok mcbride@
|
|
|
|
|
|
|
|
|
|
Fix from merith at redmoon dot openbsd dot de, with slightly modified wording.
|
|
Fix from merith at redmoon dot openbsd dot de.
|
|
plug a memory leak in the lexer.
the issue is this code fragement from yylex():
. token = lookup(buf);
. yylval.v.string = strdup(buf);
. if (yylval.v.string == NULL)
. err(1, "yylex: strdup");
. return (token);
lookup() tries to match buf against a list of keywords, and returns the
associated token if it has a match, or the token STRING otherwise.
STRING is the only token that needs (and free()s) yylval.v.string. however,
we assigned memory for it with the strdup in yylex for each and every token.
the fix is obviously only setting yylval.v.string when lookup() returns STRING.
Patrick Latifi noticed that something was leaking with token handling,
analysis and fix by me.
ok deraadt@
also err instead of errx after strdup failure
|
|
|
|
from Patrick Latifi <pat@eyeo.org>
|
|
warn if loading due to SIGHUP. (pointed out by mpf@)
- Can't just bcopy the config struct, there are TAILQs. Pass pointers instead.
- Initialise the SIGHUP and routing socket handlers after config is loaded.
ok henning@
|
|
|
|
comes last.
ok henning@
|
|
|
|
use a logit() function with varargs and bells and whistles instead of this
macro gore in LOG with static # of args that results in highlights like
LOG(level, "%s", "started")
logit blatantly stolenb from bgpd
test and ok and "remove the \n then" ryan
|
|
|
|
then the char buffer and sparc64 hates unaligned shitz, ryan hshoexer ok
|
|
errx as written
ryan hshoexer ok
|
|
ok mcbride@
|
|
|
|
- Make -v work as intended.
- Add -n to test config without doing anything.
|
|
external tests, and boolean logic. Allows ifstated to handle partial
failures on firewalls that are CARPd to each other.
ok deraadt@
|
|
interface link state changes and runs commands when these changes occur.
This is particularly useful with carp(4) interfaces; stay tuned for
additional features and documentation.
ok deraadt@ mpf@
|