aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-06-13 17:53:42 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2014-06-13 17:53:42 +0300
commitcfdddef8393b7012db59fec4d01558189a4c2e99 (patch)
tree1dd848451c3223965ff7876dc1f71111a57e2766 /src
parent5131315a8153c70c7acc92a02323a47f6c563dfd (diff)
downloadwydawca-cfdddef8393b7012db59fec4d01558189a4c2e99.tar.gz
wydawca-cfdddef8393b7012db59fec4d01558189a4c2e99.tar.bz2
Bugfixes.
* modules/mailutils/mod_mailutils.c (wy_config): Initialize allocated struct mailevt with 0s. * src/module.c (conf_notification_modules): Avoid coredump if np->modnode == NULL. * grecs: Upgrade. * tests/notify-upl.at: Add a unique keyword.
Diffstat (limited to 'src')
-rw-r--r--src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index 33946ee..ca1d471 100644
--- a/src/module.c
+++ b/src/module.c
@@ -144,13 +144,13 @@ conf_notification_modules(struct notification *np)
144 struct module *mod = modlookup(np->modname); 144 struct module *mod = modlookup(np->modname);
145 if (!mod) { 145 if (!mod) {
146 wy_log(LOG_ERR, "%s: no such module", 146 wy_log(LOG_ERR, "%s: no such module",
147 np->modname); 147 np->modname);
148 return 1; 148 return 1;
149 } 149 }
150 if (!np->modcfg && mod->config) { 150 if (!np->modcfg && mod->config && np->modnode) {
151 np->modcfg = mod->config(np->modnode); 151 np->modcfg = mod->config(np->modnode);
152 if (!np->modcfg) { 152 if (!np->modcfg) {
153 wy_log(LOG_ERR, 153 wy_log(LOG_ERR,
154 "%s: failed to configure", 154 "%s: failed to configure",
155 np->modname); 155 np->modname);
156 return 1; 156 return 1;

Return to:

Send suggestions and report system problems to the System administrator.