diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-03-16 06:27:03 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-03-16 06:27:03 +0000 |
commit | 760dc868bf59271d72b44617171413ac896c6029 (patch) | |
tree | b256fb98a4286dd0d623050f4019f7d0c86d5fb4 | |
parent | bbff63dc3ec0299de31cce930f3cf8e578e587b8 (diff) |
Make ifstated handle config reloads after a parse error. Fixes PR5051
Fix from Michael Knudsen.
-rw-r--r-- | usr.sbin/ifstated/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y index ce11264f93f..81db6ad5d1b 100644 --- a/usr.sbin/ifstated/parse.y +++ b/usr.sbin/ifstated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.12 2006/03/16 06:17:42 mcbride Exp $ */ +/* $OpenBSD: parse.y,v 1.13 2006/03/16 06:27:02 mcbride Exp $ */ /* * Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org> @@ -675,6 +675,7 @@ parse_config(char *filename, int opts) if (errors) { clear_config(conf); + errors = 0; return (NULL); } |