diff options
author | harti <harti@FreeBSD.org> | 2004-08-12 19:17:29 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-08-12 19:17:29 +0000 |
commit | 77b71ef863b9c988491767af109973bafd155a55 (patch) | |
tree | 6d0aa02d2dc42bd6f2b2a95c4f197ce355fd5221 | |
parent | 883c945b5c98b38564cf24bee48c4875f1cbf18a (diff) | |
parent | 3a13f9df8e23f636a28dcd8d08fb4ace5d70eb57 (diff) | |
download | FreeBSD-src-77b71ef863b9c988491767af109973bafd155a55.zip FreeBSD-src-77b71ef863b9c988491767af109973bafd155a55.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r133594,
which included commits to RCS files with non-trunk default branches.
-rw-r--r-- | contrib/bsnmp/snmpd/config.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/bsnmp/snmpd/config.c b/contrib/bsnmp/snmpd/config.c index 2a69047..f6f5c35 100644 --- a/contrib/bsnmp/snmpd/config.c +++ b/contrib/bsnmp/snmpd/config.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Begemot: bsnmp/snmpd/config.c,v 1.21 2004/08/06 08:47:10 brandt Exp $ + * $Begemot: bsnmp/snmpd/config.c,v 1.22 2004/08/12 17:09:49 brandt Exp $ * * Parse configuration file. */ @@ -1290,13 +1290,18 @@ read_config(const char *fname, struct lmodule *lodmod) ignore = 0; input_push = 0; + + if (ERRPUSH()) + return (-1); if (input_open_file(fname, 0) == -1) { syslog(LOG_ERR, "%s: %m", fname); return (-1); } + ERRPOP(); community = COMM_INITIALIZE; if ((snmp_ctx = snmp_init_context()) == NULL) { + input_close_all(); syslog(LOG_ERR, "%m"); return (-1); } |