diff options
author | syrinx <syrinx@FreeBSD.org> | 2008-03-07 09:33:29 +0000 |
---|---|---|
committer | syrinx <syrinx@FreeBSD.org> | 2008-03-07 09:33:29 +0000 |
commit | 1f644f50df15b6258b1b2782f9f02d44f13df0bf (patch) | |
tree | 810111dd53735a607b04ad2b38fcb4aacbd73b3c /contrib/bsnmp/snmpd | |
parent | fa063e4787b41eda66bc512bab64475c6d3b5c39 (diff) | |
download | FreeBSD-src-1f644f50df15b6258b1b2782f9f02d44f13df0bf.zip FreeBSD-src-1f644f50df15b6258b1b2782f9f02d44f13df0bf.tar.gz |
Vendor patch: Prevent bsnmpd from dumping core when a module's init hook
returns an error.
Approved by: bz (mentor), harti
Diffstat (limited to 'contrib/bsnmp/snmpd')
-rw-r--r-- | contrib/bsnmp/snmpd/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/bsnmp/snmpd/main.c b/contrib/bsnmp/snmpd/main.c index b183d7f..e3660c1 100644 --- a/contrib/bsnmp/snmpd/main.c +++ b/contrib/bsnmp/snmpd/main.c @@ -2242,6 +2242,8 @@ lm_load(const char *path, const char *section) return (m); err: + if ((m->flags & LM_ONSTARTLIST) != 0) + TAILQ_REMOVE(&modules_start, m, start); if (m->handle) dlclose(m->handle); free(m->path); |