mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
This commit was generated by cvs2svn to compensate for changes in r133594,
which included commits to RCS files with non-trunk default branches.
This commit is contained in:
commit
181fd12f6c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133595
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user